Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Control save prompts in VB code

How do I control the prompts so end users do not have to answer "enable
macros" questions and "There is alraeady a file saving it will overwrite it
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Control save prompts in VB code

The only ways (that I know) to do this a

Use a certificate (self cert)
or
Build an add-in with all the code needed and have the user add it
to there add-ins. These open behind the scene each time Excel is opened.
or
Build a workbook with all the code and have the user save it in the XlStart
folder.
These also open behind the scene each time Excel is opened.

Than you can have your "special" workbooks have code to open any file
without prompts.

--
steveB

Remove "AYN" from email to respond
"bobcat" wrote in message
...
How do I control the prompts so end users do not have to answer "enable
macros" questions and "There is alraeady a file saving it will overwrite
it



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Control save prompts in VB code

Using the following code should work:

Application.DisplayAlerts = False

If you only want to disable the prompts for one function only, say when
closing a workbook you can then enable them again afterwards as follows:

Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True

I hope that helps.

Graham




bobcat wrote:
How do I control the prompts so end users do not have to answer "enable
macros" questions and "There is alraeady a file saving it will overwrite it


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
Save Prompts PMOPS Excel Worksheet Functions 1 August 26th 08 05:40 PM
print prompts save as des New Users to Excel 5 November 27th 06 02:08 PM
Exiting Excel prompts for save MXH Excel Discussion (Misc queries) 3 February 22nd 05 08:31 PM
Save without prompts Jeff Excel Programming 1 February 1st 05 03:22 PM
Save Excel file - prompts to save - no Volitile functions used POWER CERTS Excel Worksheet Functions 2 November 1st 04 09:27 PM


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