LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Getting list of open workbooks

wrote in message
...
In reference to my earlier post that includes code to list
the processes currently running:

You will also need to reference the "Microsoft Forms 2.0
Object Library" from the Visual Basic Editor to get that
code to work.

Just in case- to do this, open the Visual Basic Editor,
then from the main menu select [Tools] then [References]
then scroll to locate it and check it.

Hope this does the trick for you.

Hi. I tried to run this code and obtained the following

error message:

"Run-time error 432
File name or class name not found during Automation

operation"

with the

Set xWMIService =
GetObject("WINMGMTS:{IMPERSONATIONLEVEL=IMPERSONA TE}!

\\.\ROOT\CIMV2")

line highlighted when I hit Debug. Do you have to check

anything in Tools |
References to make certain a library available?


I tried this, but still got the same error. Wouldn't GetObject be a Windows
API call?


 
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
when i open an Excell file 3 workbooks open.Why? Iain40 Excel Discussion (Misc queries) 2 February 3rd 09 05:04 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
List Open Workbooks in VBA Chip Pearson Excel Programming 1 November 17th 03 05:21 PM
Workbooks.Open closes other workbooks S. Daum Excel Programming 1 August 21st 03 07:47 PM
Workbooks.Open / .Open Text - How do you stop the .xls addition? Dave[_20_] Excel Programming 2 July 31st 03 04:03 AM


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