Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem in opening Excel which is already opened by VB code

Hi,
I have a VB programmming coded by my senior programmers. It will take data
from Access database and puts it into an excel file and formats. Since we
require a lot of formating after the data being spooled to excel we have
written a VB code. When we run VB programs it opens the excel sheet in the
background and does its work. If we open excel directly for any other purpose
will get runtime error from VB application and program aborts. Is there any
method by which we can use excel in parallel to the application (which uses
excel internally)? Please let me know if you have any solutions

Regards,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Problem in opening Excel which is already opened by VB code


Open a separate instance of Excel to do your processing.
Keep the new instance invisible (the default state). See...
http://support.microsoft.com/kb/219151/en-us

Jim Cone
Portland, Oregon USA



"Naveen J V"
wrote in message
Hi,
I have a VB programmming coded by my senior programmers.
It will take data from Access database and put it into an excel
file and formats. Since we require a lot of formating after the data
being spooled to excel we have written a VB code.
When we run VB programs it opens the excel sheet in the background
and does its work. If we open excel directly for any other purpose
will get runtime error from VB application and program aborts.
Is there any method by which we can use excel in parallel to the
application (which uses excel internally)?
Please let me know if you have any solutions
Regards,
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
Error when opening up file in Excel 2007, but not when opened withExcel 2002 [email protected] Excel Programming 0 February 1st 08 06:00 PM
Is there away to keep Excel from opening a copy of an already opened workbook and the pages not be at 100% but Marc New Users to Excel 1 March 13th 06 01:51 PM
Opening a workbook if not opened, going to it if already opened neotokyo[_3_] Excel Programming 0 September 24th 04 08:56 PM
Opening a workbook if not opened, going to it if already opened neotokyo[_2_] Excel Programming 1 September 24th 04 07:17 PM
Opening a workbook if not opened, going to it if already opened neotokyo Excel Programming 1 September 24th 04 06:33 PM


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