Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default How to open workbooks in different Excel?

I have a workbook (refer as "my workbook" here) with a form (refer as "my
form" here). I've also added a custom menu item to the toolbar at the top of
Excel, with the following macro assigned to it to open my form:

Sub OpenMyForm()
MyForm.Show
End Sub

At the moment, if I have other workbooks opened already and click the custom
menu item, it opens my workbook/my form in the same Excel application as
those other workbooks. The problem with this is that I cannot switch to other
workbooks while my form is active.

Can I open my form in a NEW Excel application when I click the custom menu
item, so that I can switch between workbooks even while my form is active?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to open workbooks in different Excel?

If you're using xl2k+ (IIRC), you can do:

MyForm.show False

Then swap windows.

Sam Kuo wrote:

I have a workbook (refer as "my workbook" here) with a form (refer as "my
form" here). I've also added a custom menu item to the toolbar at the top of
Excel, with the following macro assigned to it to open my form:

Sub OpenMyForm()
MyForm.Show
End Sub

At the moment, if I have other workbooks opened already and click the custom
menu item, it opens my workbook/my form in the same Excel application as
those other workbooks. The problem with this is that I cannot switch to other
workbooks while my form is active.

Can I open my form in a NEW Excel application when I click the custom menu
item, so that I can switch between workbooks even while my form is active?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default How to open workbooks in different Excel?

Beauty. Thanks Dave!


"Dave Peterson" wrote:

If you're using xl2k+ (IIRC), you can do:

MyForm.show False

Then swap windows.

Sam Kuo wrote:

I have a workbook (refer as "my workbook" here) with a form (refer as "my
form" here). I've also added a custom menu item to the toolbar at the top of
Excel, with the following macro assigned to it to open my form:

Sub OpenMyForm()
MyForm.Show
End Sub

At the moment, if I have other workbooks opened already and click the custom
menu item, it opens my workbook/my form in the same Excel application as
those other workbooks. The problem with this is that I cannot switch to other
workbooks while my form is active.

Can I open my form in a NEW Excel application when I click the custom menu
item, so that I can switch between workbooks even while my form is active?


--

Dave Peterson

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
Excel2007; workbooks.count is not counting all open workbooks greg.campeau Excel Programming 2 August 2nd 08 08:37 PM
VBA Excel.WorkBooks.Open can't open an XML format xls file giantdino Excel Programming 2 August 14th 07 03:12 PM
When I open Excel, workbooks open automatically. How can I stop t Rhealbird Excel Discussion (Misc queries) 2 February 23rd 06 10:08 AM
workbooks.open function fails to open an existing excel file when used in ASP, but works in VB. san Excel Programming 1 January 3rd 06 03:22 AM
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed Frank Jones Excel Programming 2 June 15th 04 03:21 AM


All times are GMT +1. The time now is 04:30 AM.

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"