Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.vb.ole.automation,microsoft.public.excel.programming,comp.os.ms-windows.programmer.ole
external usenet poster
 
Posts: 1
Default a little help? OLE object, which version of app?

I have a VB app that places an excel sheet on a form. It creates an
instance of excel automatically, which is fine. When I click into the
grid to edit, I get all the menus, etc., so I am forced to turn off
all the menus and commandbars so the user will not do anything but
edit the data.

Here's the issue: If the user already had excel open, the instance
that is grabbed for the OLE work is THAT instance, turning off the
menus for the user, etc. How can I force it to use a NEW instance of
excel? Ive tried the early vs. late binding, no luck. I cannot point
the OLE object at a particular instance of excel.

Any help would be appreciated!

Thanks,
DH
  #2   Report Post  
Posted to microsoft.public.vb.ole.automation,microsoft.public.excel.programming,comp.os.ms-windows.programmer.ole
external usenet poster
 
Posts: 90
Default a little help? OLE object, which version of app?

Drew -

When I included these lines in a macro in PowerPoint, it opened a new
Excel instance, leaving alone the instance already open.

Dim xlApp As Excel.Application
Set xlApp = CreateObject("Excel.Application")

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Drew Hershkowitz wrote:

I have a VB app that places an excel sheet on a form. It creates an
instance of excel automatically, which is fine. When I click into the
grid to edit, I get all the menus, etc., so I am forced to turn off
all the menus and commandbars so the user will not do anything but
edit the data.

Here's the issue: If the user already had excel open, the instance
that is grabbed for the OLE work is THAT instance, turning off the
menus for the user, etc. How can I force it to use a NEW instance of
excel? Ive tried the early vs. late binding, no luck. I cannot point
the OLE object at a particular instance of excel.

Any help would be appreciated!

Thanks,
DH


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
How do I save an Excel 97-2003 version or 2007 version for Mac 200 Bronigal Excel Discussion (Misc queries) 1 December 7th 09 08:04 AM
Wrap Text: Print Version different than Screen Version sh2195 Excel Discussion (Misc queries) 0 August 25th 08 03:52 PM
Help Required!!! Macro to load data from version 1 to version 2 [email protected] Excel Worksheet Functions 0 August 23rd 06 07:27 AM
Recover earlier version of excel sheet after new version saved? stephanie38 Excel Discussion (Misc queries) 3 June 17th 05 03:52 AM
How can I update the version of Excel 2000 9.0 to version 10.0 Ramsey Can Excel Discussion (Misc queries) 1 May 11th 05 03:28 PM


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