Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
J Shrimps, Jr.
 
Posts: n/a
Default Iterate though all open spreadsheets

Have used Walkenbach's book to create
a macro that itterates through all open worksheets
in an Excel workbook and places the name
of the workseet in a specific cell.
But I don't see the code to iterate through
ALL open spreadsheets.
I have to rename each open worksheet in a folder
(there's only one worksheet in each spreadsheet).
"Sheet1" for linking purposes.
The spreadsheets are results of an export
from Access, which by default names
Worksheet1 as the name of the query.
Not viable to name each query "Sheet1".


  #2   Report Post  
OJ
 
Posts: n/a
Default

Hi,
Dim objWb As Workbook

For Each objWb In Application.Workbooks
.....your code here
Next objWb

Hth,
OJ

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
Cannot open Excel attachment from e-mail when Excel is already ope John P. Excel Discussion (Misc queries) 1 March 1st 05 08:35 PM
Networking excel spreadsheets error Leander Excel Discussion (Misc queries) 0 February 22nd 05 10:09 AM
When I open excel document it always ask if I want to open it in . dperkins Excel Discussion (Misc queries) 0 February 15th 05 08:11 PM
I need to download ms office with excel to open xls spreadsheets jenny Excel Discussion (Misc queries) 1 February 2nd 05 08:48 PM
Cannot open a file that Excel says is open Plodhia Excel Discussion (Misc queries) 2 December 7th 04 01:43 AM


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