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

Hi all!

A quick question.Here is what I am trying to do.

Name of the original workbook changed in the middle of certai
operations/tasks performed by some macros. So I want to rename th
workbook back to the orginal name and at the same time, i DO NOT wan
to save the changes made/done in the sheet/workbook till then and kee
the workbook still open, so that I can repeat the macros again an
again before finally closing the workbook manually.

I tried the following but evidently could'nt use it, as it closes th
sheet.

activeworkbook.close savechanges:=false

Any help would be appreciated guys.

Thanks.

Arun,
Vtec Corp

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Workbook renaming!

Hi Arun

It's not extremely obvious to me what you want to do, but

application.displayalerts = False

will turn off (or on, with True) excel's built-in warnings. And

Activeworkbook.Saved = True

will trick excel to believe that no changes are made, no matter if that's
true or not.

HTH. Best wishes Harald

"aiyer " skrev i melding
...
Hi all!

A quick question.Here is what I am trying to do.

Name of the original workbook changed in the middle of certain
operations/tasks performed by some macros. So I want to rename the
workbook back to the orginal name and at the same time, i DO NOT want
to save the changes made/done in the sheet/workbook till then and keep
the workbook still open, so that I can repeat the macros again and
again before finally closing the workbook manually.

I tried the following but evidently could'nt use it, as it closes the
sheet.

activeworkbook.close savechanges:=false

Any help would be appreciated guys.

Thanks.

Arun,
Vtec Corp.


---
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
Renaming workbook! aiyer[_20_] Excel Programming 1 May 11th 04 11:34 PM
Workbook crashes after renaming a worksheet - References problem? BenD[_2_] Excel Programming 0 April 21st 04 01:22 AM
Excel VBA: Renaming a workbook Lazer[_2_] Excel Programming 6 April 20th 04 08:56 AM
Renaming Sheets in a workbook Cameron MacRae Excel Programming 2 December 18th 03 11:19 PM
Renaming within VBA Brent McIntyre Excel Programming 4 August 21st 03 02:10 AM


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