Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Start my Application in its OWN instance?

Hello,

I've created an Excel application using userforms that is actually pretty
good. I hide the Excel application and using the userforms, you can't really
tell you are in Excel. Ok. Great.

However, if the user has Excel open already, the Excel Application that I
wrote snags and hides everything.

How do you code a workbook in VBA so that when it opens, it opens in its own
instance?

If I then to use application.visible = false, will that just hide the Excel
instance of my application's workbook?

I hope I am conveying what I am trying to do well enough?

I only want to hide the latest instance (my app's instance), not totally
take over the user's Excel experience.

Is this possible?

Thanks,

Tony
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Start my Application in its OWN instance?

You can create a new instance of Excel within your code doing something like
this

Dim XLApp as Excel.Application

Set XLApp = CreateObject("Excel.Application")

The only problem with this is that your original workbook is contained in
the application instance in which you opened it.

I've found that each time I open Excel from the Start menu (Start -Programs
) or (Start to quick start menu), I get a new instance. I'm not sure if
that's global, or if it was set up that way.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Webtechie" wrote:

Hello,

I've created an Excel application using userforms that is actually pretty
good. I hide the Excel application and using the userforms, you can't really
tell you are in Excel. Ok. Great.

However, if the user has Excel open already, the Excel Application that I
wrote snags and hides everything.

How do you code a workbook in VBA so that when it opens, it opens in its own
instance?

If I then to use application.visible = false, will that just hide the Excel
instance of my application's workbook?

I hope I am conveying what I am trying to do well enough?

I only want to hide the latest instance (my app's instance), not totally
take over the user's Excel experience.

Is this possible?

Thanks,

Tony

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Start my Application in its OWN instance?

Barb,

I guess I can create an addin that will open a workbook in a new instance
and then hide that instance.

Would I still be able to use functions from my addin with my workbook, if
there are using separate instances?

Tony






"Barb Reinhardt" wrote:

You can create a new instance of Excel within your code doing something like
this

Dim XLApp as Excel.Application

Set XLApp = CreateObject("Excel.Application")

The only problem with this is that your original workbook is contained in
the application instance in which you opened it.

I've found that each time I open Excel from the Start menu (Start -Programs
) or (Start to quick start menu), I get a new instance. I'm not sure if
that's global, or if it was set up that way.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"Webtechie" wrote:

Hello,

I've created an Excel application using userforms that is actually pretty
good. I hide the Excel application and using the userforms, you can't really
tell you are in Excel. Ok. Great.

However, if the user has Excel open already, the Excel Application that I
wrote snags and hides everything.

How do you code a workbook in VBA so that when it opens, it opens in its own
instance?

If I then to use application.visible = false, will that just hide the Excel
instance of my application's workbook?

I hope I am conveying what I am trying to do well enough?

I only want to hide the latest instance (my app's instance), not totally
take over the user's Excel experience.

Is this possible?

Thanks,

Tony

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
Force excel to start new instance when I double-click a workbook [email protected][_2_] Excel Discussion (Misc queries) 0 April 30th 09 01:35 PM
Using Object model to start an instance of excel on another computer? P Excel Programming 1 April 14th 06 09:34 PM
Set up Excel to start new instance for each new file opened. Minimal_Subset Excel Discussion (Misc queries) 2 May 12th 05 01:36 AM
How do I set up Excel to open a new instance/application window w. DK9144 Excel Discussion (Misc queries) 1 February 21st 05 04:34 PM
Using workbooks.open after new instance of excel application George J Excel Programming 3 September 16th 04 02:00 PM


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