Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The below code saves my file with a Space
for the first character in the filename. This is not desirable. How can I eliminate this problem? TIA, _MyFile r-111 Apr 2006.xls << where _ is actually a space Sub SaveWithCellName() Dim s As String, s1 As String Dim MyDir As String On Error Resume Next MyDir = "C:\Documents and Settings\Jim May\My Documents\MyExcelFormulas\" ChDir (MyDir) s = ActiveSheet.Range("G1").Text s1 = Range("G2").Text _ & Format(Range("G3"), "mmm yyyy") & ".xls" ActiveWorkbook.SaveAs s & s1 On Error GoTo 0 If Dir(s & s1) < "" Then MsgBox s1 & " successfully saved" Else MsgBox "Problems " End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why is the actual calculation different from actual sample | Excel Discussion (Misc queries) | |||
Max if variable begins with | Excel Worksheet Functions | |||
If statement - begins with | Excel Discussion (Misc queries) | |||
HelpWhy is "~$filename" 1KB copy of my saved file being created? | Excel Discussion (Misc queries) | |||
IF Function - Begins With | Excel Discussion (Misc queries) |