If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Save As Macro Excel 2010

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-11, 11:32
foxcan foxcan is offline
Registered User
 
Join Date: Aug 2011
Posts: 1
Save As Macro Excel 2010

Problem: unable to get macro to run when I click file,save as. Macro works fine when manually running macro from VB. Can someone help?

Macro:

Quote:
Sub Save_it()

Dim strCustomer, strSavePrompt As String

' Collect customer name
strCustomer = Range("memname")

' Collect current date
strVerDate = Range("savedate")

' strFileName = "Estimate for " & " - " & strCustomer & " - (YMD) " & strVerDate
strFileName = "Estimate for " & " - " & strCustomer & " - (YMD) " & strVerDate & ".xls"

Application.Dialogs(xlDialogSaveAs).Show strFileName

End Sub
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On