Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default hyperlinking to excel program with userform

Here's a little something that's been locking up my machine.

I have a spreadsheet that, when launched, automatically shows a
userform. I use the Workbook_Open event to show the userform. As a
standalone, this spreadsheet works fine. Now, when I hyperlink to
this spreadsheet inside a Word document and then click this hyperlink,
Word goes into "la-la" land (i.e., perpetual hourglass).

This is my Workbook_Open

Private Sub Workbook_Open()
UserForm1.Show
End Sub

My guess is the when opened via hyperlink, that there is some
confusion as to where userform1 is. But that is my guess.


Suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default hyperlinking to excel program with userform

Hi Russ,

Private Sub Workbook_Open()
UserForm1.Show
End Sub

My guess is the when opened via hyperlink, that there is some
confusion as to where userform1 is. But that is my guess.

Suggestions?


Avoid the showing of the form like this:

Private Sub Workbook_Open()
If not Me.IsInPlace Then
UserForm1.Show
End If
End Sub


Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com

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
running program from userform davegb Excel Programming 10 November 2nd 06 04:57 PM
How to turn off warning when hyperlinking to other program? T-Man Excel Discussion (Misc queries) 0 July 31st 05 05:08 PM
Helpful userform tricky to program CB Hamlyn Excel Programming 3 April 27th 05 03:44 PM
tab in userform locks program bruce forster Excel Programming 6 April 30th 04 11:01 PM
Can I program a userform via spreadsheet? Phillips Excel Programming 2 November 27th 03 04:11 AM


All times are GMT +1. The time now is 03:03 PM.

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"