Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Files visible or not...

Can someone help me out on something I'm sure is easier
than I'm making it? Brain block. Is it Monday?

I need a quick efficient method of looping through all
currently open workbooks and pop up a message box that
tells me the workbook name and whether or not its visible.

Your example code is what I need. Thanks in advance...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Files visible or not...

Dim wkbk as Workbook
for each wkbk in Application.Workbooks
if wkbk.Windows(1).Visible then
msgbox wkbk.Name " is Visible"
else
msgbox wkbk.Name " is not Visible"
end if
Next

--
Regards,
Tom Ogilvy

"rj" wrote in message
...
Can someone help me out on something I'm sure is easier
than I'm making it? Brain block. Is it Monday?

I need a quick efficient method of looping through all
currently open workbooks and pop up a message box that
tells me the workbook name and whether or not its visible.

Your example code is what I need. Thanks in advance...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Files visible or not...

Sub EnumWorkbooks()
Dim wrbk As Workbook

For Each wrbk In Workbooks
MsgBox wrbk.Name & vbCrLf & wrbk.Windows(wrbk.Name).Visible
Next wrbk

End Sub


Uzytkownik "rj" napisal w wiadomosci
...
Can someone help me out on something I'm sure is easier
than I'm making it? Brain block. Is it Monday?

I need a quick efficient method of looping through all
currently open workbooks and pop up a message box that
tells me the workbook name and whether or not its visible.

Your example code is what I need. Thanks in advance...



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
Multiple Excel files visible DennisT Setting up and Configuration of Excel 2 September 30th 08 01:57 AM
Excel 2007 tmp files filling up drive with XLSM files Jim Excel Worksheet Functions 0 September 12th 08 03:31 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
Autoshapes not visible on spreadsheet but visible in print preview John Excel Discussion (Misc queries) 3 February 11th 05 10:23 PM
Help: Copying Visible Cells only to Visible cells! Jay Jayakumar Excel Programming 0 July 9th 03 08:25 PM


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