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

Hi there,

Q1. When I force run the following code:

Sub workbook_before_close()
Call Show_Welcome
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Visible = (ws.Name < "Welcome") * -1 - 1
Next ws
Application.SaveWorkspace
End Sub

I get a dialogue saying "A file named "Resume.XLW" already exists in
the location. Do you want to replace it?"
What does this mean, and how would I auto-replace file without user
intervention?

Q2. What is to stop someone, once macros are enabled to go to
Tools|Macro|Macros| then deleting or running whatever they want?

Q3. Is there a global routine that will prevent anybody from saving
through any method, whether it be a dialogue prompt, the save button
in the toolbar, or through File|Save/Save As?

Thanks for your time.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Coupla questions

Hi
try:
Sub workbook_before_close()
Call Show_Welcome
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Visible = (ws.Name < "Welcome") * -1 - 1
Next ws
application.displayalerts=false
Application.SaveWorkspace
application.displayalerts=true
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

"Rich" schrieb im Newsbeitrag
om...
Hi there,

Q1. When I force run the following code:

Sub workbook_before_close()
Call Show_Welcome
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Visible = (ws.Name < "Welcome") * -1 - 1
Next ws
Application.SaveWorkspace
End Sub

I get a dialogue saying "A file named "Resume.XLW" already exists in
the location. Do you want to replace it?"
What does this mean, and how would I auto-replace file without user
intervention?

Q2. What is to stop someone, once macros are enabled to go to
Tools|Macro|Macros| then deleting or running whatever they want?

Q3. Is there a global routine that will prevent anybody from saving
through any method, whether it be a dialogue prompt, the save button
in the toolbar, or through File|Save/Save As?

Thanks for your time.


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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
questions about at sum nreily Excel Discussion (Misc queries) 2 May 14th 09 04:27 PM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
3 Questions actually! grandfilth Excel Discussion (Misc queries) 5 October 25th 05 08:13 PM
A few RTD Questions Ken Rangel Excel Programming 2 February 14th 04 02:29 AM


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