Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Wierd - when saving wb & protected...it opens with sheet 'down'

Hi -
I am using the good ole technique for macros not being enabled of creating a
worksheet that says 'your macros are not enable...do this'. So, when I close
and save, I leave it on this sheet. I am also password protecting the
workbook when I close. When the user opens the workbook, the first vb runs
and hides that 'no macros' sheet and goes to the correct sheet.

Now for the wierd part. Since the workbook is saved protected, when the
workbook opens and the user does not have macros enabled, my 'no macro' sheet
only opens as if it is 'down' (not maximized, but not minimized...not sure
what you really call it). If I do not protect the workbook when I save it,
the no macro sheet will be maximized.

What gives? Thanks is advance.
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Wierd - when saving wb & protected...it opens with sheet 'down'

Hi Mike,

Maybe you set the windowstate is minimized,
Perhaps you can place it in ThisWorkbook module :

Private Sub Workbook_Open()
Application.ActiveWindow.WindowState = xlMaximized
End Sub

--

Regards,

Halim


"Mike R." wrote:

Hi -
I am using the good ole technique for macros not being enabled of creating a
worksheet that says 'your macros are not enable...do this'. So, when I close
and save, I leave it on this sheet. I am also password protecting the
workbook when I close. When the user opens the workbook, the first vb runs
and hides that 'no macros' sheet and goes to the correct sheet.

Now for the wierd part. Since the workbook is saved protected, when the
workbook opens and the user does not have macros enabled, my 'no macro' sheet
only opens as if it is 'down' (not maximized, but not minimized...not sure
what you really call it). If I do not protect the workbook when I save it,
the no macro sheet will be maximized.

What gives? Thanks is advance.
Mike

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Wierd - when saving wb & protected...it opens with sheet 'down

Hi - thanks for the advice. Unfortantly, when the macros are disable, the
Workbook_Open() won't work. I did put this code before I protect and save,
but it did not work.

Can anyone else help? Thanks,
Mike

"Halim" wrote:

Hi Mike,

Maybe you set the windowstate is minimized,
Perhaps you can place it in ThisWorkbook module :

Private Sub Workbook_Open()
Application.ActiveWindow.WindowState = xlMaximized
End Sub

--

Regards,

Halim


"Mike R." wrote:

Hi -
I am using the good ole technique for macros not being enabled of creating a
worksheet that says 'your macros are not enable...do this'. So, when I close
and save, I leave it on this sheet. I am also password protecting the
workbook when I close. When the user opens the workbook, the first vb runs
and hides that 'no macros' sheet and goes to the correct sheet.

Now for the wierd part. Since the workbook is saved protected, when the
workbook opens and the user does not have macros enabled, my 'no macro' sheet
only opens as if it is 'down' (not maximized, but not minimized...not sure
what you really call it). If I do not protect the workbook when I save it,
the no macro sheet will be maximized.

What gives? Thanks is advance.
Mike

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Wierd - when saving wb & protected...it opens with sheet 'down'

When you protected the WB, did you check "Windows" as well as "Structure" ?
Try it without the "Windows" checked.

NickHK

"Mike R." wrote in message
...
Hi -
I am using the good ole technique for macros not being enabled of creating

a
worksheet that says 'your macros are not enable...do this'. So, when I

close
and save, I leave it on this sheet. I am also password protecting the
workbook when I close. When the user opens the workbook, the first vb

runs
and hides that 'no macros' sheet and goes to the correct sheet.

Now for the wierd part. Since the workbook is saved protected, when the
workbook opens and the user does not have macros enabled, my 'no macro'

sheet
only opens as if it is 'down' (not maximized, but not minimized...not sure
what you really call it). If I do not protect the workbook when I save

it,
the no macro sheet will be maximized.

What gives? Thanks is advance.
Mike



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Wierd - when saving wb & protected...it opens with sheet 'down

Hi Nick - you nailed it! Works fine now. Thanks!
Mike

"NickHK" wrote:

When you protected the WB, did you check "Windows" as well as "Structure" ?
Try it without the "Windows" checked.

NickHK

"Mike R." wrote in message
...
Hi -
I am using the good ole technique for macros not being enabled of creating

a
worksheet that says 'your macros are not enable...do this'. So, when I

close
and save, I leave it on this sheet. I am also password protecting the
workbook when I close. When the user opens the workbook, the first vb

runs
and hides that 'no macros' sheet and goes to the correct sheet.

Now for the wierd part. Since the workbook is saved protected, when the
workbook opens and the user does not have macros enabled, my 'no macro'

sheet
only opens as if it is 'down' (not maximized, but not minimized...not sure
what you really call it). If I do not protect the workbook when I save

it,
the no macro sheet will be maximized.

What gives? Thanks is advance.
Mike






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Wierd - when saving wb & protected...it opens with sheet 'down

Mike,

I do something similar, but without the password protection. However, I use the
BeforeSave or BeforeClose event to save the workbook with all sheets very
hidden, except for the "note" sheet. That way, if macros are disabled, the
sheets are already hidden. I don't know if that will change your workbook
opening minimized, but I've never had that happen.

Mike R. wrote:
Hi - thanks for the advice. Unfortantly, when the macros are disable, the
Workbook_Open() won't work. I did put this code before I protect and save,
but it did not work.

Can anyone else help? Thanks,
Mike

"Halim" wrote:

Hi Mike,

Maybe you set the windowstate is minimized,
Perhaps you can place it in ThisWorkbook module :

Private Sub Workbook_Open()
Application.ActiveWindow.WindowState = xlMaximized
End Sub

--

Regards,

Halim


"Mike R." wrote:

Hi -
I am using the good ole technique for macros not being enabled of creating a
worksheet that says 'your macros are not enable...do this'. So, when I close
and save, I leave it on this sheet. I am also password protecting the
workbook when I close. When the user opens the workbook, the first vb runs
and hides that 'no macros' sheet and goes to the correct sheet.

Now for the wierd part. Since the workbook is saved protected, when the
workbook opens and the user does not have macros enabled, my 'no macro' sheet
only opens as if it is 'down' (not maximized, but not minimized...not sure
what you really call it). If I do not protect the workbook when I save it,
the no macro sheet will be maximized.

What gives? Thanks is advance.
Mike

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
Unwanted Prompt When Saving a Protected Sheet in 2007 faraway Excel Discussion (Misc queries) 0 May 6th 09 12:46 PM
Password Protected Excel Spreadsheet opens blank Neil Setting up and Configuration of Excel 8 September 27th 07 11:26 PM
Wierd!!!!?? Protected and shared - cant insert hyperlink harpscardiff Excel Discussion (Misc queries) 1 January 26th 06 05:47 PM
Workbook opens really small after protected Mark Stephens Excel Programming 1 June 11th 05 06:14 PM
Protected Workbook Opens Restored Tod Excel Programming 2 February 6th 04 09:42 PM


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