Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default how to open a workbook when application excel is running ?

The workbook is probably opened it is just not visible. Open the Task
manager before you run your code and see if another instance of excel is
created from your macro. You can get all the open instances of excel usingt
this code

for each exc in workbooks

next exc



"Michel Angelosanto" wrote:

No it's not thus,
i open a main workbook witch is going to read several workbooks opened
succesfully with internet, and closed after reading.

I proceed thus:
in excel i open the main workbook
i open internet explorer and proceed the login manually or with a macro.
Now i am ready to start the robot
i run a macro on main workbook to send to IE the adress web
the same macro send with sendkeys the commands to open the workbook into
excel, imediately in excel i open a userform with a button, shell a script
vbs and close the macro
When the macro is closed the workbook can open into excel
the script vbs looks for the workbook is open and when the workbook is open
send a enter command to excel wich is equal to click on the button of the
userform wich start again the same macro to continue with the folowing file
to read and so on ...
This works fine!

"Joel" a écrit dans le message de
...
you probably ned to open a new excel application and launch the web
workbooks
with the new application

Set obj = createobject("Excel.application")

"Barb Reinhardt" wrote:

It would be helpful to see what you've tried.

"Michel Angelosanto" wrote:

hello,

I have an application wich runs Internet explorer and open a distant
workbook but the workbook do not open because excel macro is running.

Has a command in vba to let excel allow openning the workbook and
continue
execution of the macro?

I want to open the workbook, read the data in it and close it, then
open
other workbook read data and close it etc ...
I have tried DoEvents without success.

Thanks
--
Michel Angelosanto, Bordeaux
Dernières mises Ã* jour du site Voyage au pays Internet
http://angelosa.free.fr/index.php?t=8



--
Michel Angelosanto, Bordeaux
Dernières mises Ã* jour du site Voyage au pays Internet
http://angelosa.free.fr/index.php?t=8


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
Excel 2003 - Keep a Macro Running While the Workbook is Open MaxRoberts22 Excel Programming 4 January 10th 06 07:33 PM
Open Form (VBA Running) and Application.OnTime Ronald Dodge Excel Programming 1 December 16th 05 02:41 PM
Running a query from an open workbook Dave M.[_2_] Excel Programming 1 September 20th 05 02:17 AM
Application Error when running Macro on Workbook open TM[_2_] Excel Programming 1 October 2nd 03 10:53 AM
Application Error when running Macro on Workbook open TM[_2_] Excel Programming 0 September 15th 03 12:33 PM


All times are GMT +1. The time now is 09:28 AM.

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"