View Single Post
 
Old 10-01-2014, 04:19 AM
Smithy02468 Smithy02468 is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Oct 2014
Posts: 9
Smithy02468 is on a distinguished road
Default Saves as dialog in Excel

I am trying to set up a spreadsheet where it copies a worksheet to another workbook and brings up the save as dialog box in a specific folder on the network,

the code i am using is as below.

Sheets("Target_Dates").Select
Sheets("Target_Dates").Copy
With Application.Dialogs(xlDialogSaveAs)
.InitialFileName = "N:\BES-DATA\traffman\traffic\"
If Not .Show Then
MsgBox "User cancelled without saving."
Exit Sub
End If
End With

For some reason it does not work and produces an error message "run time error 438 Object does not support this property or methiod"

Any help or suggestion gretly appreciated.

Colin
Reply With Quote