Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Opening a workbook at a specific sheet

I have a workbook with various worksheets in it. To force Excel to
open it at a a specific sheet I use code like this in the Workbook
Open event:

Sheets("MySheet").Activate

This works, but the users get prompted to accept Macros. Can I get
rid of this prompt?

Nirmal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Opening a workbook at a specific sheet

Hi Nirmal

get rid of this prompt?

The only simple way is that the user have security to low

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Nirmal Singh" wrote in message ...
I have a workbook with various worksheets in it. To force Excel to
open it at a a specific sheet I use code like this in the Workbook
Open event:

Sheets("MySheet").Activate

This works, but the users get prompted to accept Macros. Can I get
rid of this prompt?

Nirmal



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Opening a workbook at a specific sheet

hi,
you will have to change the security level of the file.
goto ToolsmacroSecurity...
the options are high, medium or low. set to low the enable
macro box will not pop up.
Consider the full ramifications before deciding.

-----Original Message-----
I have a workbook with various worksheets in it. To

force Excel to
open it at a a specific sheet I use code like this in the

Workbook
Open event:

Sheets("MySheet").Activate

This works, but the users get prompted to accept Macros.

Can I get
rid of this prompt?

Nirmal
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Opening a workbook at a specific sheet

If you are working in-house and the other members of your team can trust you,
create a digital certificate for yourself -- run "Selfcert.exe" which you
will probably find in C:\Program Files\Microsoft Office\Office.

Once you have created your certificate go into the macro editor and select
Tools/Digital Signature from the menu. Select your certificate and resave
your macro.

When you now send it out for others they will be asked on the first occasion
whether the macro should be enabled but there is also a tick box to enable
them to always trust you. If they select that box they will never be troubled
with that opening dialogue again either with this macro or any other macro
that you sign with the same certificate.

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
Code for opening a workbook at a specific time!?! mike_vr Excel Discussion (Misc queries) 2 June 5th 07 04:55 PM
only the last sheet tab appears when opening workbook Aline Yiu Excel Discussion (Misc queries) 4 October 4th 06 04:52 PM
Opening a workbook to a chosen sheet? renderingsanity Excel Discussion (Misc queries) 1 March 29th 06 02:17 PM
Opening A Specific Excel Sheet [email protected] Excel Discussion (Misc queries) 2 July 11th 05 08:45 PM
Excel VBA - Opening a workbook to a specific sheet every time carljonesuk Excel Programming 1 February 9th 04 10:36 AM


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