Re: Rename a Workbook??
From: Dave Peterson (ec35720_at_msn.com)
Date: 09/18/04
- Next message: Myrna Larson: "Re: Dates prior to 1900"
- Previous message: Dave Peterson: "Re: SUMIF Problem"
- In reply to: Don: "Rename a Workbook??"
- Next in thread: Don: "Re: Rename a Workbook??"
- Reply: Don: "Re: Rename a Workbook??"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 18 Sep 2004 13:47:12 -0500
This was my reply at your first post:
The name of a workbook comes when you save it.
Maybe you could use .savecopyas within your macro.
Then if the printed copy is ok, keep that workbook--if it's not ok, look at Kill
(in VBA's help) to delete it.
But if you use .savecopyas, you actually save a copy of the workbook you're
working in--the workbook that you're in doesn't change and isn't saved.
If you want, you can open that .savecopyas file, but if you don't open it, it's
just sitting there on disk.
========
I connect to the MS Servers directly. You may want to try it, too.
Saved from an earlier post....
If you have Outlook Express installed, try clicking on these links (or copy and
paste into MSIE).
news://msnews.microsoft.com/microsoft.public.excel.setup
news://msnews.microsoft.com/microsoft.public.excel.misc
news://msnews.microsoft.com/microsoft.public.excel.work***.functions
news://msnews.microsoft.com/microsoft.public.excel.newusers
news://msnews.microsoft.com/microsoft.public.excel.programming
(and a few more for MSWord)
news://msnews.microsoft.com/microsoft.public.word.docmanagement
news://msnews.microsoft.com/microsoft.public.word.word97vba
news://msnews.microsoft.com/microsoft.public.word.newusers
news://msnews.microsoft.com/microsoft.public.word.pagelayout
news://msnews.microsoft.com/microsoft.public.word.vba.addins
news://msnews.microsoft.com/microsoft.public.word.vba.beginners
news://msnews.microsoft.com/microsoft.public.word.vba.customization
news://msnews.microsoft.com/microsoft.public.word.vba.general
news://msnews.microsoft.com/microsoft.public.word.vba.userforms
news://msnews.microsoft.com/microsoft.public.word.word6-7macros
(You can always connect to more later)
Here are some links that explain it better:
Chip Pearson has some notes written by Leonard Meads at:
http://www.cpearson.com/excel/DirectConnect.htm
David McRitchie's notes at:
http://www.mvps.org/dmcritchie/excel/xlnews.htm
http://www.mvps.org/dmcritchie/excel/oe6.htm
http://www.mvps.org/dmcritchie/excel/oe6nws01.htm
Tushar Mehta's notes at:
http://www.tushar-mehta.com/misc_tutorials/oe_ng/index.htm
And if you're looking for old posts:
Or you can use google (maybe a few hours behind) to search for stuff you've
posted (and find the replies, too)
http://groups.google.com/advanced_group_search
http://groups.google.com/advanced_group_search?q=group:*Excel*&num=100
Ron de Bruin has an excel addin that you may like:
http://www.rondebruin.nl/Google.htm
Don wrote:
>
> Howdy folks,
>
> First, if this gets double posted, I apologize...I put
> this question up over an hour ago and I can't find it on
> the board. It must be floating around out there in cyber-
> space somewhere.
>
> Question was....can you rename a Workbook, using VBA,
> without using the "Saveas" function. I'd like to print a
> copy of the one *** WB and leave the option to save to
> the OP using a msg box. I need to change the WB name
> because of a Header used in printing that reflects the
> current file name.
>
> I have been printing two copies, one before the saveas and
> one after the saveas function, but would nice to clean
> that up to one print, if I can.
>
> Any help would be greatly appreciated and again, I
> apologize if this gets double posted.
>
> Don
-- Dave Peterson ec35720@msn.com
- Next message: Myrna Larson: "Re: Dates prior to 1900"
- Previous message: Dave Peterson: "Re: SUMIF Problem"
- In reply to: Don: "Rename a Workbook??"
- Next in thread: Don: "Re: Rename a Workbook??"
- Reply: Don: "Re: Rename a Workbook??"
- Messages sorted by: [ date ] [ thread ]