Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default How to have a userform displayed and be able to work in a different spreadsheet

Dear experts,
I would like to run a macro contained in Worksheet B from
Worksheet A.
I need to keep the macro in worksheet B, so I can't just
copy the modules in worksheet A, and as this is part of a
series of steps and macros etc. I have used a userform
with a button linked to worksheet B.
My problem is the following: the userform stays visible
after clicking the worksheet B button and does not allow
me to work in worksheet B. I can't just hide the userform
or unload it as I need it for the following steps of my
process!

If it's useful the very simple code I have used is:
in the module:
Sub Show_Userform()
UserForm1.Show 0
End Sub
in the userform:
Private Sub CommandButton1_Click()
Workbooks.Open ("WorksheetB.xls")
End Sub

Do you maybe know how to solve this problem?
Many thanks in advance!
Best regards,
Valeria
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default How to have a userform displayed and be able to work in a different spreadsheet

If you are using Excel 2000 or above the following will
allow the userform to stay visible and allow you to work
at the same time.

UserForm1.Show vbModeless

Regards
Jamal
-----Original Message-----
Dear experts,
I would like to run a macro contained in Worksheet B from
Worksheet A.
I need to keep the macro in worksheet B, so I can't just
copy the modules in worksheet A, and as this is part of a
series of steps and macros etc. I have used a userform
with a button linked to worksheet B.
My problem is the following: the userform stays visible
after clicking the worksheet B button and does not allow
me to work in worksheet B. I can't just hide the userform
or unload it as I need it for the following steps of my
process!

If it's useful the very simple code I have used is:
in the module:
Sub Show_Userform()
UserForm1.Show 0
End Sub
in the userform:
Private Sub CommandButton1_Click()
Workbooks.Open ("WorksheetB.xls")
End Sub

Do you maybe know how to solve this problem?
Many thanks in advance!
Best regards,
Valeria
.

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
Spreadsheet columns are displayed numerically instead of alpha eddie Excel Worksheet Functions 5 September 11th 09 04:40 PM
Format problem in displayed userform Anthony Excel Worksheet Functions 8 June 30th 08 02:52 PM
How to make userform work publically with hidden sheets? Zigball Excel Discussion (Misc queries) 7 October 25th 06 03:30 PM
How to make userform work publically with hidden sheets? Zigball Excel Worksheet Functions 7 October 25th 06 03:30 PM
Label Caption Just Wont Work on UserForm K[_3_] Excel Programming 2 September 15th 03 03:29 PM


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