Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code creates a file name. How do I change
this as a public statement in order to use wherever i want to use the file name in the same workbook? I tried something like public Myfilename , but it doesn't works? Any help highly appreciated? FlName = Format(Sheets("summary").Range("rptdate") - 1, "mmm dd") Mydir = "C:\Daily Reports\" If WeekDay(Sheets("summary").Range("rptdate")) = vbMonday Then myfile = Format(Sheets("summary").Range("rptdate") - 3 - Range("holid"), mmm dd") Else myfile = Format(Sheets("summary").Range("rptdate") - Range("holid") - 1, "mmm dd") End If FileName = Mydir & "[" & myfile & "]" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop a Procedure from another procedure | Excel Discussion (Misc queries) | |||
Declaring variables in Module vs. Public | Excel Discussion (Misc queries) | |||
Declaring variables | Excel Discussion (Misc queries) | |||
DEclaring variables | Excel Programming |