Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Workbook_open procedure issue when two spreadsheets are opened

I have a spreadsheet that launches a splashscreen when opened, after
specified time, the splashscreen closes and launches a form requiring user
level selection and password requirements. All works fine when this is the
only spreadsheet being opened, lets call it spreadsheet 1.

The issue is when a second spreadsheet is being opened at the same time, I
get a script error. I think the issue is because the second spreadsheet,
lets call it spreadsheet 2, is now the active workbook and the code of course
is not applicable to spreadsheet 2.

Any thoughts how to get around this,

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Workbook_open procedure issue when two spreadsheets are opened

Try using ThisWorkbook instead of Activeworkbook?

hth,

Doug

"Gardfd" wrote in message
...
I have a spreadsheet that launches a splashscreen when opened, after
specified time, the splashscreen closes and launches a form requiring user
level selection and password requirements. All works fine when this is
the
only spreadsheet being opened, lets call it spreadsheet 1.

The issue is when a second spreadsheet is being opened at the same time, I
get a script error. I think the issue is because the second spreadsheet,
lets call it spreadsheet 2, is now the active workbook and the code of
course
is not applicable to spreadsheet 2.

Any thoughts how to get around this,

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Workbook_open procedure issue when two spreadsheets are opened

Use ThisWorkbook rather than ActiveWorkbook in your references.

--
Regards,
Tom Ogilvy


"Gardfd" wrote:

I have a spreadsheet that launches a splashscreen when opened, after
specified time, the splashscreen closes and launches a form requiring user
level selection and password requirements. All works fine when this is the
only spreadsheet being opened, lets call it spreadsheet 1.

The issue is when a second spreadsheet is being opened at the same time, I
get a script error. I think the issue is because the second spreadsheet,
lets call it spreadsheet 2, is now the active workbook and the code of course
is not applicable to spreadsheet 2.

Any thoughts how to get around this,

Thanks

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
Compatibility Issue between files created in 2003 but opened in 20 Lucy Excel Discussion (Misc queries) 0 February 20th 08 10:10 PM
workbook_Open event Procedure peerless Excel Discussion (Misc queries) 1 May 22nd 06 10:21 PM
workbook_Open event Procedure peerless Excel Discussion (Misc queries) 0 May 22nd 06 10:16 PM
How call procedure when worksheet opened? John Excel Programming 4 January 23rd 06 01:13 AM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


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