Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Tue, 28 Oct 2008 16:01:29 +1100, "NoodNutt"
wrote: G'day John Try this code instead, it Compiled OK, so it should be alright. I will give your second suggestion a try later, but in the meantime I found that the following seems to work: strFilename = "C:\Documents and Settings\" & Environ("username") & "\My Documents\" & Title & ".xls" If MsgBox("Do you want to save this file to your computer (My Documents) with the following filename?" & Chr(10) & strFilename, vbYesNo) = vbYes Then ActiveWorkbook.SaveAs strFilename End If It appears the specifying the full path is required, don't know why using "C:\My Documents" wouldn't work???? Thanks for the ideas. John Keith |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I change default file for saving documents? | Excel Discussion (Misc queries) | |||
Problem with saving documents as .csv file | Excel Programming | |||
Saving Excel File in Current Directory NOT My Documents | Excel Programming | |||
Saving Excel File in Current Directory NOT My Documents | Excel Programming | |||
cannot open documents as viruscan says problem file? | Excel Discussion (Misc queries) |