Microsoft Excel - Hyperlink Filename Save

Asked By john hay
07-Nov-09 03:12 PM

Apologies, but I am a newbie.

I have a list of hyperlinks in a column in excel 2007. The hyperlink names are incremented by one i.e. ABB01, ABB02, ABB03. Each of the hyperlinks goes to the same template. I would like to know how to save the template with the same name for the hyperlink that was used to open it. Thank you.

Stumpy

  Gary Byrne replied to john hay
08-Nov-09 09:39 PM

Hi, do you know how to use macros or VBA at all?  You can use the following code to save a file with filename from a label in a cell.  Let's say you have some text in cell A1...

savename = range(“A1”).text & ".xls"

   

ActiveWorkbook.SaveAs Filename:=savename, FileFormat:= _

    xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False

 

You can also write a loop to do the same for an entire range of cells...

 

Create New Account
help
How can I make my data show as flashing in Excel? Excel Excel Miscellaneous Discussions Microsoft Excel (1) Excel (1) Application.OnTime (1) Worksheet (1) Workbook (1) Macro (1) VBA (1) Font.ColorIndex (1 if you insist, see Chip Pearson's site for VBA code. http: / / www.cpearson.com / excel / BlinkingText.aspx Gord Dibben MS Excel MVP This was great - thank you. My boss loved it. Now I have another question
Enable macros Excel My macros have been disabled. How do I enable them? Excel Programming Discussions Excel Options Trust Centre Trust Centre Settings Macros (1) Microsoft Excel (1) Office 2010 (1) Excel 2010 (1) Excel (1) Macros (1) Microsoft Office 2010 (1
to reuse macros Excel I written a macros in an excel . How I can reuse thsese macros in another excel without copoying the above macros or without opening the previous excel which contains macros Excel Miscellaneous Discussions Microsoft Excel (1) Excel 2003 (1) Excel (1) Workbook
Formats for Printing Macros Excel Excel 2007 I have been asked to produce some printouts of macros. How do I set the print format (margins, etc.)? - - Gary''s Student - gsnu200909 Excel Programming Discussions Microsoft Excel (1) Excel 2007 (1) Word (1) Macros (1) Gsnu200909 (1) Printouts (1) Nav (1) Do you mean
Conflict with Valid Range Reference Error in Microsoft Excel 2007 Excel Hi, While converting the Macros enabled Microsoft Excel 2003 to Microsoft Excel 2007 format, I am getting the following Conflict with Valid Range Reference Error. After clicking