PC Review


Reply
Thread Tools Rate Thread

Confirm SaveAs takes place.

 
 
SJW_OST
Guest
Posts: n/a
 
      15th Oct 2008
I have a file that automatically copies out specific tabs of my main workbook
to a new workbook and then I am using the following code to save the new
workbook to a intranet sharepoint with a name_date_time format for the file
name.

ActiveWorkbook.SaveAs "http://path/" & "PassCounts_" &
format(now,"mmddyy_hhmmss") & ".xls"

How can I have Excel verify the SaveAs function took place on the new
workbook, saving the file appropriately to the intranet sharepoint, with out
a prompt to accept or cancel? If the SaveAs function did not take place,
acctually saving the file, I want the SaveAs process to loop until it does
take place.

Any help is appreciated.
Stephen W
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      15th Oct 2008
if the workbook was saved then the saved property will be true.

do
ActiveWorkbook.SaveAs "http://path/" & "PassCounts_" &
format(now,"mmddyy_hhmmss") & ".xls"

loop until activeworkbook.saved = true
--
HTH...

Jim Thomlinson


"SJW_OST" wrote:

> I have a file that automatically copies out specific tabs of my main workbook
> to a new workbook and then I am using the following code to save the new
> workbook to a intranet sharepoint with a name_date_time format for the file
> name.
>
> ActiveWorkbook.SaveAs "http://path/" & "PassCounts_" &
> format(now,"mmddyy_hhmmss") & ".xls"
>
> How can I have Excel verify the SaveAs function took place on the new
> workbook, saving the file appropriately to the intranet sharepoint, with out
> a prompt to accept or cancel? If the SaveAs function did not take place,
> acctually saving the file, I want the SaveAs process to loop until it does
> take place.
>
> Any help is appreciated.
> Stephen W

 
Reply With Quote
 
John Keith
Guest
Posts: n/a
 
      15th Oct 2008
On Tue, 14 Oct 2008 19:22:01 -0700, SJW_OST
<(E-Mail Removed)> wrote:

>I have a file that automatically copies out specific tabs of my main workbook
>to a new workbook


Teach me how to save specific tabs. I think I might need this soon.

Thanks

PS - the response to your OP was useful also. This is a great group!



John Keith
(E-Mail Removed)
 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      15th Oct 2008
See
http://www.rondebruin.nl/copy6.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"John Keith" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> On Tue, 14 Oct 2008 19:22:01 -0700, SJW_OST
> <(E-Mail Removed)> wrote:
>
>>I have a file that automatically copies out specific tabs of my main workbook
>>to a new workbook

>
> Teach me how to save specific tabs. I think I might need this soon.
>
> Thanks
>
> PS - the response to your OP was useful also. This is a great group!
>
>
>
> John Keith
> (E-Mail Removed)

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      15th Oct 2008
Oops(I press the send button to fast)

If you want to save a few sheets to a new workbook you can use this to copy them to a new workbook

Sheets(Array("Sheet1", "Sheet3")).Copy



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ron de Bruin" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> See
> http://www.rondebruin.nl/copy6.htm
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "John Keith" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>> On Tue, 14 Oct 2008 19:22:01 -0700, SJW_OST
>> <(E-Mail Removed)> wrote:
>>
>>>I have a file that automatically copies out specific tabs of my main workbook
>>>to a new workbook

>>
>> Teach me how to save specific tabs. I think I might need this soon.
>>
>> Thanks
>>
>> PS - the response to your OP was useful also. This is a great group!
>>
>>
>>
>> John Keith
>> (E-Mail Removed)

 
Reply With Quote
 
SJW_OST
Guest
Posts: n/a
 
      16th Oct 2008
This works great, thank you!

"Jim Thomlinson" wrote:

> if the workbook was saved then the saved property will be true.
>
> do
> ActiveWorkbook.SaveAs "http://path/" & "PassCounts_" &
> format(now,"mmddyy_hhmmss") & ".xls"
>
> loop until activeworkbook.saved = true
> --
> HTH...
>
> Jim Thomlinson
>
>
> "SJW_OST" wrote:
>
> > I have a file that automatically copies out specific tabs of my main workbook
> > to a new workbook and then I am using the following code to save the new
> > workbook to a intranet sharepoint with a name_date_time format for the file
> > name.
> >
> > ActiveWorkbook.SaveAs "http://path/" & "PassCounts_" &
> > format(now,"mmddyy_hhmmss") & ".xls"
> >
> > How can I have Excel verify the SaveAs function took place on the new
> > workbook, saving the file appropriately to the intranet sharepoint, with out
> > a prompt to accept or cancel? If the SaveAs function did not take place,
> > acctually saving the file, I want the SaveAs process to loop until it does
> > take place.
> >
> > Any help is appreciated.
> > Stephen W

 
Reply With Quote
 
John Keith
Guest
Posts: n/a
 
      17th Oct 2008
On Wed, 15 Oct 2008 16:30:44 +0200, "Ron de Bruin"
<(E-Mail Removed)> wrote:

>Oops(I press the send button to fast)
>
>If you want to save a few sheets to a new workbook you can use this to copy them to a new workbook
>
>Sheets(Array("Sheet1", "Sheet3")).Copy


Thank you Ron, I think that will work great.



John Keith
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing one row takes the place of two RickM Microsoft Excel Programming 1 23rd Jan 2009 08:28 PM
What takes the place of the floppy drive? spoon2001 DIY PC 5 27th Mar 2006 09:47 PM
What takes the place of a space in a formula? =?Utf-8?B?Z3JlZW5yb2Nrc2FuZHNvZG9lc3NjaG9vbGFuZG15 Microsoft Excel Misc 3 3rd Feb 2005 07:00 PM
Save takes seconds vs. SaveAs/Save As takes minutes Andrew H Microsoft Excel Programming 0 17th Aug 2004 07:17 PM
msconfig-what takes its place in win 2000 =?Utf-8?B?bWFydnlvbmU=?= Microsoft Windows 2000 2 14th Feb 2004 09:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:58 AM.