Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Macro workbook_open() BUG with addins?


Hello guys, I really need your assistance
I wrote a VBA macro do some calculations and I added a splash scree
with:

Private Sub workbook_open()
UserForm2.Show
End Sub

now here is the problem, I save my macro as an addin, and enable thi
add-ins in excel "tool". now if I open an empty(new) excel workbook
everything includes my addin work just fine, my userform2 displays a
the begining.
but if I open any existing(saved) workbook that contains data, it wil
behave like this:
userform2 displays as before, then it disappear as expected(After fe
second), but there isnt any workbook got opened, the excel window i
here and it is gray, i can mannually create a new workbook or clic
open file button to open other workbook, but it doesnot open th
workbook I chose automaticlly after i double click on the workboo
icon.

I am pretty sure the problem has something to do with workbook_ope
sub,
if only I erase this sub, everything will be just fine.

I have searched so many online tutorials but none of them addressed th
problem,
anyone knows what might be the reason?
thanks a lo

--
lang047
-----------------------------------------------------------------------
lang0477's Profile: http://www.excelforum.com/member.php...fo&userid=2397
View this thread: http://www.excelforum.com/showthread.php?threadid=37594

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Macro workbook_open() BUG with addins?

Look in Tools=Options and see if Ignore Other Applications is checked. If
so, uncheck it.

--
Regards,
Tom Ogilvy


"lang0477" wrote in
message ...

Hello guys, I really need your assistance
I wrote a VBA macro do some calculations and I added a splash screen
with:

Private Sub workbook_open()
UserForm2.Show
End Sub

now here is the problem, I save my macro as an addin, and enable this
add-ins in excel "tool". now if I open an empty(new) excel workbook,
everything includes my addin work just fine, my userform2 displays at
the begining.
but if I open any existing(saved) workbook that contains data, it will
behave like this:
userform2 displays as before, then it disappear as expected(After few
second), but there isnt any workbook got opened, the excel window is
here and it is gray, i can mannually create a new workbook or click
open file button to open other workbook, but it doesnot open the
workbook I chose automaticlly after i double click on the workbook
icon.

I am pretty sure the problem has something to do with workbook_open
sub,
if only I erase this sub, everything will be just fine.

I have searched so many online tutorials but none of them addressed the
problem,
anyone knows what might be the reason?
thanks a lot


--
lang0477
------------------------------------------------------------------------
lang0477's Profile:

http://www.excelforum.com/member.php...o&userid=23975
View this thread: http://www.excelforum.com/showthread...hreadid=375949



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Macro workbook_open() BUG with addins?


i am waiting for answer

--
lang047
-----------------------------------------------------------------------
lang0477's Profile: http://www.excelforum.com/member.php...fo&userid=2397
View this thread: http://www.excelforum.com/showthread.php?threadid=37594

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Macro workbook_open() BUG with addins?

Good for you.

--
Regards,
Tom Ogivly

"lang0477" wrote in
message ...

i am waiting for answers


--
lang0477
------------------------------------------------------------------------
lang0477's Profile:

http://www.excelforum.com/member.php...o&userid=23975
View this thread: http://www.excelforum.com/showthread...hreadid=375949



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Macro workbook_open() BUG with addins?


I just looked, the "ignore other application" was origionally unchecked


--
lang0477
------------------------------------------------------------------------
lang0477's Profile: http://www.excelforum.com/member.php...o&userid=23975
View this thread: http://www.excelforum.com/showthread...hreadid=375949



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Macro workbook_open() BUG with addins?

the other alternative for this type of problem is usually to close excel,
then go to the Run menu under the Windows Start menu

enter

Excel.exe /regserver

and click OK.

--
Regards,
Tom Ogilvy


"lang0477" wrote in
message ...

I just looked, the "ignore other application" was origionally unchecked


--
lang0477
------------------------------------------------------------------------
lang0477's Profile:

http://www.excelforum.com/member.php...o&userid=23975
View this thread: http://www.excelforum.com/showthread...hreadid=375949



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
Workbook_Open macro - what gives? Geoff C Excel Programming 5 March 9th 05 01:27 PM
Help with Workbook_Open macro please Geoff C Excel Programming 7 January 13th 05 10:19 AM
Auto_Open and Workbook_Open in Addins Erich Neuwirth Excel Programming 1 July 11th 04 06:54 PM
Workbook_Open & Macro James Cox[_2_] Excel Programming 0 July 2nd 04 03:44 PM
Workbook_Open macro created in Excel 97 problems on MAC Dick Kusleika Excel Programming 2 September 8th 03 06:42 PM


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