Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am using a form to gather information and assigning some of the information to a variable to use as a file name. My problem is that I need to unload the form before I can pragmatically save the file. But if I unload the file, I lose the variable value "strCSVFile". Is there a way to save the value even if you unload the form? Private Sub cmdOK_Click() ... strCSVFile = "some file name" Unload Me Call BuildCSVFile(strCSVFile) ... ActiveWorkbook.SaveAs Filename:=strPath, FileFormat:=xlCSV, CreateBackup:=False End Sub Any help would be appreciated. -- Thanks in advance, Steven |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting Rows...but losing "FORMAT" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
"Type mismatch" when I try to fill an Array variable with "+" | Excel Discussion (Misc queries) | |||
HOW CAN I SORT A "RANKED" COLUMN WITHOUT LOSING THE FORMULA? | Excel Worksheet Functions | |||
"Unload" selection after running macro? | Excel Programming |