LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default how to reshow userform after following a link

I have a userform (first tier) that calls another userform (second
tier), and the second tier userform has code associated with a
combobox that opens a link to another excel file in a new window.
After the the linked file is closed, I would like to return to the
calling userform (second tier) and have both the first tier and second
tier userforms again visible. I had it set up so that the hidden
userforms were reshown by the WorkBookActivate event code; that seemed
to work okay since the initial workbook became the active workbook
when the temporarily viewed worksheet was closed. But, I ran into a
problem with putting the code there, as that code runs too often for
me. Sometimes, when that workbook becomes the active workbook I don't
want the userforms to be displayed.

The sequence of events is basically:

display form1
display form 2

follow link to another excel file (but I don't see it if I don't hide
the two forms)

hide form2
hide form1

Exit sub

close linked file

return to initial workbook, but, forms are no longer visible; and I
want them to be restored automatically

Is there a way to reshow the forms after the linked file is closed? I
have not been able to use the WorkbookActivate event and I prefer not
to have to have any code in the linked files. I am hoping to have
something in the code like "be right back", and having it pick up
there, after the linked file is closed.

Thanks

Ken



 
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
cell link to userform ranswrt Excel Programming 2 September 4th 08 03:39 PM
How to Link value from a Cell to a control in the userform Shuvro Basu Excel Programming 1 December 22nd 05 12:25 PM
Link from Userform to Spreadsheet Richard Excel Programming 3 May 22nd 04 05:54 PM
Userform w/ Multiple listboxes that link miker1999[_13_] Excel Programming 1 April 27th 04 03:22 AM
Userform w/ Multiple listboxes that link miker1999[_12_] Excel Programming 0 April 20th 04 12:35 PM


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