Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro (can do a save as.


Hello could some one please tell me if it is possible to get a macro to
do a "Save As" . What it will have to do is save as a given date which
will be at all times in cell B1. I can get macros to do most things but
I have yet to learn how to do a save as.

Thankyou

Paul Maynard


--
paulrm906
------------------------------------------------------------------------
paulrm906's Profile: http://www.excelforum.com/member.php...o&userid=28776
View this thread: http://www.excelforum.com/showthread...hreadid=501004

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Macro (can do a save as.

Hello Paul,

Just use
ActiveWorkbook.SaveAs

HTH
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro (can do a save as.


Carim Wrote:
Hello Paul,

Just use
ActiveWorkbook.SaveAs

HTH
Carim


Hello Carim

I know this may sound like a stupid question, but when say use the
ActiveWorkbook.SaveAs are you referring to File/SaveAS?


--
paulrm906
------------------------------------------------------------------------
paulrm906's Profile: http://www.excelforum.com/member.php...o&userid=28776
View this thread: http://www.excelforum.com/showthread...hreadid=501004

  #4   Report Post  
Posted to microsoft.public.excel.programming
GB GB is offline
external usenet poster
 
Posts: 230
Default Macro (can do a save as.

What he means is that in a sub-routine or a function:

public Sub SaveMe()
ActiveWorkbook.SaveAs
end sub

This sub-routine will prompt the user for the name and location in which to
save the current workbook.

I do not have access currently to VBA help files, but there are some other
things you can add at the end of the SaveAs feature that will allow you to
name the file with todays date and remove the user interaction in naming the
file. But you have to be 100% sure of where you want to store your files as
compared either to the current location of the workbook that is doing all the
grunt VBA work, in relation to the current users system setup, or the network
that the file(s) are being stored on.

"paulrm906" wrote:


Carim Wrote:
Hello Paul,

Just use
ActiveWorkbook.SaveAs

HTH
Carim


Hello Carim

I know this may sound like a stupid question, but when say use the
ActiveWorkbook.SaveAs are you referring to File/SaveAS?


--
paulrm906
------------------------------------------------------------------------
paulrm906's Profile: http://www.excelforum.com/member.php...o&userid=28776
View this thread: http://www.excelforum.com/showthread...hreadid=501004


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro (can do a save as.


Hello Carim

I am no expert when it comes to actually writing a macro but I will
give it a go. So again thankyou very much for your help and support.

Paul Maynard


QUOTE=GB]What he means is that in a sub-routine or a function:

public Sub SaveMe()
ActiveWorkbook.SaveAs
end sub

This sub-routine will prompt the user for the name and location in
which to
save the current workbook.

I do not have access currently to VBA help files, but there are some
other
things you can add at the end of the SaveAs feature that will allow you
to
name the file with todays date and remove the user interaction in
naming the
file. But you have to be 100% sure of where you want to store your
files as
compared either to the current location of the workbook that is doing
all the
grunt VBA work, in relation to the current users system setup, or the
network
that the file(s) are being stored on.

"paulrm906" wrote:


Carim Wrote:
Hello Paul,

Just use
ActiveWorkbook.SaveAs

HTH
Carim


Hello Carim

I know this may sound like a stupid question, but when say use the
ActiveWorkbook.SaveAs are you referring to File/SaveAS?


--
paulrm906

------------------------------------------------------------------------
paulrm906's Profile:

http://www.excelforum.com/member.php...o&userid=28776
View this thread:

http://www.excelforum.com/showthread...hreadid=501004




--
paulrm906
------------------------------------------------------------------------
paulrm906's Profile: http://www.excelforum.com/member.php...o&userid=28776
View this thread: http://www.excelforum.com/showthread...hreadid=501004

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
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Macro to Save without the Save Message Ellen G Excel Discussion (Misc queries) 4 February 23rd 07 08:52 PM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM
Save As Macro Ronbo[_2_] Excel Programming 2 February 17th 04 10:27 PM
Prompted to save changes after macro save - why? Izar Arcturus Excel Programming 2 December 10th 03 09:27 PM


All times are GMT +1. The time now is 07:44 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"