Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to reference a variable cell value in a macro ?
For example, A1 is linked to a combo box selection. A macro called MACRO1 saves the current file under the filename of <value of A1.txt . If A1=Apple, the macro should save the current file as Apple.txt . Any ideas ? - Ronald K. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
kittronald used his keyboard to write :
Is it possible to reference a variable cell value in a macro ? Absolutely! For example, A1 is linked to a combo box selection. A macro called MACRO1 saves the current file under the filename of <value of A1.txt . If A1=Apple, the macro should save the current file as Apple.txt . Any ideas ? - Ronald K. Dim sFilename As String sFilename = ThisWorkbook.Path & "\" & Range("A1").Value & ".txt" -- Garry Free usenet access at http://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Referencing 2 cells in a macro | Excel Programming | |||
Referencing a Cell in Macro | Excel Programming | |||
referencing a cell in a macro | Excel Programming | |||
Sheet referencing in a macro | Excel Programming | |||
Sheet referencing in a macro | Excel Programming |