Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VBA Macro cannot see hidden workbook

I have developed an VBA macro for MS Excel that uses a hidden Excel workbook
as a database. To check that the database is present, I use a routine the
iterates through the workbooks contained in command word Application, i.e.:

Dim wkb As Workbook

For Each wkb In Application.Workbooks

{Check whether workbook is database workbook}

Next wkb

The routine works fine on my machine. However, for some reason the routine
will not work properly on a colleagues machine. It seems to fail due to the
fact that the database workbook is hidden.

In the visual basic editor edit mode setting a watch to the command word;
Applications.Workbooks it seems to recognise that the workbook is present
within the application. However, whenever I try to access the workbook entry
via the watch the Excel application crashes.

Why should this happen on one machine and not others? Does anyone have any
suggestions to overcome this problem? Can I perhaps use some alternative
routine?

Regards

Andy B

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200607/1
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 can I get a validation to run in a macro on a shared workbook? arewa Excel Discussion (Misc queries) 3 January 2nd 06 11:31 PM
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM
copy text from 1 workbook to another by macro bigdaddy3 Excel Worksheet Functions 0 August 17th 05 06:20 PM
macro to browse for workbook, pick up data and looping uriel78 Excel Worksheet Functions 1 March 10th 05 12:37 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


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