Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Not allow to open file it do not accept macros

Is the a way so that I can make it so that a user cannot open a file unless
he/she allows macros?

I fashioned an Excel worksheet into a input form. The workbook containing
the form has lots of VB, lookup tables and hidden columns, formulas and
sheets. It works remarkedly well except for one problem. Some users insist
on disallowing macros when they open the file and then not only does the
input form not function, but since I've used VB to protect the form, they
usually mess up the form and all the data previously input to the form. In
sending out the form, I've instructed the users to Accept Macros, but
invariably there are some who do not follow that simple instruction. The
results is both the user and I spend a lot time correcting the mess.

Any help and/or suggestions in solving this problem will be appreaciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Not allow to open file it do not accept macros

There is no way to force it, but one work-around is to include a sheet with a notice "Hey! You need
to open this with macros enabled! Close and re-open!" that is the only visible sheet when the file
is saved. Then use macros to hide that sheet and unhide the others: if the user doesn't enable
macros, the sheets aren't unhidden and they only get the message.

HTH,
Bernie
MS Excel MVP


"JR_06062005" wrote in message
...
Is the a way so that I can make it so that a user cannot open a file unless
he/she allows macros?

I fashioned an Excel worksheet into a input form. The workbook containing
the form has lots of VB, lookup tables and hidden columns, formulas and
sheets. It works remarkedly well except for one problem. Some users insist
on disallowing macros when they open the file and then not only does the
input form not function, but since I've used VB to protect the form, they
usually mess up the form and all the data previously input to the form. In
sending out the form, I've instructed the users to Accept Macros, but
invariably there are some who do not follow that simple instruction. The
results is both the user and I spend a lot time correcting the mess.

Any help and/or suggestions in solving this problem will be appreaciated.



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
Open file with macros David T Excel Discussion (Misc queries) 2 November 29th 07 06:23 PM
Macros forcing file open brodine Excel Programming 2 July 29th 05 02:45 PM
Open file without macros John Excel Programming 4 July 21st 05 10:48 PM
In VBA, Open a file with macros disabled Otto Moehrbach[_6_] Excel Programming 1 October 24th 04 11:44 PM
How can I have a macros automatically run when I open up the file. Owen[_2_] Excel Programming 2 September 30th 04 01:44 AM


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