Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Macro button help!!

Hi, I have been asked to create a button, when pressed it ask to save as to a
specific location, once saves I then need to to save again to a specific
locaion.

Please help gurus.

Neil.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Macro button help!!

Try the below macro

Sub Macro()
Dim intCounter As Integer, strFile As String
Do While intCounter < 2
With Application.FileDialog(msoFileDialogSaveAs)
.InitialFileName = "C:\"
.Show
strFile = .SelectedItems(1)
End With
ActiveWorkbook.SaveCopyAs strFile
intCounter = intCounter + 1
Loop
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Neil Holden" wrote:

Hi, I have been asked to create a button, when pressed it ask to save as to a
specific location, once saves I then need to to save again to a specific
locaion.

Please help gurus.

Neil.

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
Stop running macro button, like Ctrl-Break button h2fcell Excel Programming 8 January 23rd 09 04:01 PM
Stop running macro button, like Ctrl-Break button Dave Peterson Excel Programming 1 January 22nd 09 05:23 PM
Stop running macro button, like Ctrl-Break button Ronald R. Dodge, Jr.[_2_] Excel Programming 0 January 22nd 09 04:59 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM


All times are GMT +1. The time now is 01:07 PM.

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"