#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default Macros...

Hi...

I have 15 sheets containing loads of info which is important. When I want my
staff to open this file they must enable macros so that the security of my
data is safe. Therefore, when they open the excel file, if they diable macros
all they have access to is a sheet that says you didn't load macros, close
the file, reopen and enable macros. This way they can have access to what I
want them too.

So the question is, can I appear to have an empty excel file, until macros
are enabled?

Cheers

G
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Macros...

Is the file READ - ONLY by your stafff. If so you can hide all the pages
when you store the file. Then have an On On Open event macro that unhides
the sheets. If macros are disabled the macro that unhides the sheets will
not work.

"Gordon" wrote:

Hi...

I have 15 sheets containing loads of info which is important. When I want my
staff to open this file they must enable macros so that the security of my
data is safe. Therefore, when they open the excel file, if they diable macros
all they have access to is a sheet that says you didn't load macros, close
the file, reopen and enable macros. This way they can have access to what I
want them too.

So the question is, can I appear to have an empty excel file, until macros
are enabled?

Cheers

G

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default Macros...

Hi Joel...

Is there any code around that can help me here. I've been playing with an
workbook_open idea in the workbook, but I think it clashes with an auto_open
macro in module 1. Also, I get error messages regarding workbook_beforeclose
which I think clashes with an aut_close macro also in module 1.

I know what I want to do but just can't make it happen.

Any help appreciated!!!

G

"Joel" wrote:

Is the file READ - ONLY by your stafff. If so you can hide all the pages
when you store the file. Then have an On On Open event macro that unhides
the sheets. If macros are disabled the macro that unhides the sheets will
not work.

"Gordon" wrote:

Hi...

I have 15 sheets containing loads of info which is important. When I want my
staff to open this file they must enable macros so that the security of my
data is safe. Therefore, when they open the excel file, if they diable macros
all they have access to is a sheet that says you didn't load macros, close
the file, reopen and enable macros. This way they can have access to what I
want them too.

So the question is, can I appear to have an empty excel file, until macros
are enabled?

Cheers

G

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Macros...

auto_open is an older style macro from excel 97 days. You should convert it
to a worbook_Open by just changing the header line and making sure it works.
Then add you changes. Try your code again and if you need help let me know.
but if you already have code I usually prefer to modify your code then to
start my own. It is going to be easier for you to maintain code that you
understand rather than learn somebody elses code.

"Gordon" wrote:

Hi Joel...

Is there any code around that can help me here. I've been playing with an
workbook_open idea in the workbook, but I think it clashes with an auto_open
macro in module 1. Also, I get error messages regarding workbook_beforeclose
which I think clashes with an aut_close macro also in module 1.

I know what I want to do but just can't make it happen.

Any help appreciated!!!

G

"Joel" wrote:

Is the file READ - ONLY by your stafff. If so you can hide all the pages
when you store the file. Then have an On On Open event macro that unhides
the sheets. If macros are disabled the macro that unhides the sheets will
not work.

"Gordon" wrote:

Hi...

I have 15 sheets containing loads of info which is important. When I want my
staff to open this file they must enable macros so that the security of my
data is safe. Therefore, when they open the excel file, if they diable macros
all they have access to is a sheet that says you didn't load macros, close
the file, reopen and enable macros. This way they can have access to what I
want them too.

So the question is, can I appear to have an empty excel file, until macros
are enabled?

Cheers

G

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
Macros in Personal.xls that would create two toolbars and buttonswith assigned macros Brian Day Excel Programming 1 March 29th 07 11:20 PM
choose default macros Not Enabled / Macros Enable Setting BEEJAY Excel Programming 2 June 30th 06 01:07 PM
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
convert lotus 123w macros to excel macros rpiescik[_2_] Excel Programming 1 September 19th 04 12:41 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


All times are GMT +1. The time now is 04:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"