Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Save Button

Application.Dialogs(xlDialogSaveAs).Show _
arg1:="Customer1"
ActiveWorkbook.Worksheets("sheet1").Range("a1").Va lue & ".xls"


- manges

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Custom Save Button

Hi thanks for the advice but it won't work!
It says Compile error, syntax error
All I have done is associate the new details with my existing macro?
What am I doing wrong??

"mangesh_yadav " wrote:

Application.Dialogs(xlDialogSaveAs).Show _
arg1:="Customer1" &
ActiveWorkbook.Worksheets("sheet1").Range("a1").Va lue & ".xls"


- mangesh


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Save Button

Difficult to imagine why you are getting the error. what else do yo
have in the code.

- Manges

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Custom Save Button

Try this:

Dim sName as String
sName = Customer1" & format( _
ActiveWorkbook.Worksheets("sheet1") _
.Range("a1").Value,"ddmmyy") & ".xls"

Application.Dialogs(xlDialogSaveAs).Show sName

--
Regards,
Tom Ogilvy


"MDL2004" wrote in message
...
I copied the entire code as you wrote into a macro under the name of

button
3.it still says error but if i remove the Arg1:= "Customer1" & it works

but
without inserting the customer 1 bit

Do I have to set Arg1 up as a label of customer 1?? or will this equation
simply just do what i'm trying to do. I'm new to VB and need all the help

i
can get!!

"mangesh_yadav " wrote:

Difficult to imagine why you are getting the error. what else do you
have in the code.

- Mangesh


---
Message posted from http://www.ExcelForum.com/




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom macro and custom button VLExcel New Users to Excel 1 April 10th 10 12:16 AM
2003 - 2007 custom macro and custom button restore. Scott Sornberger Excel Discussion (Misc queries) 11 May 23rd 08 02:41 PM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM


All times are GMT +1. The time now is 07:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"