Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Little pete
 
Posts: n/a
Default copy 40 tabs into 1 tab automatcially??

I have a weekly task where i need to report progress on 17 asset areas each
with 7 of their own workbooks, progress is simply looking at number of null
cells per workbook etc. The problem being that each of the workbooks have
been split up to make the size of the data more manageable. Depending on the
workbook some have been split into 40 tabs!

So rather than running the progress macro on each of the 40 tabs i want to
some way copy each of the tabs and dump this into one tab and then run the
progress macro.

Any help would be great - if this could be completed through some sort of
macro it would be brilliant. Each of the s/s have the same number of columns
etc

Cheers Pete
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sridhar
 
Posts: n/a
Default copy 40 tabs into 1 tab automatcially??

Hi,

Please put on examples, by that it will easier to understand your query.

"Little pete" wrote:

I have a weekly task where i need to report progress on 17 asset areas each
with 7 of their own workbooks, progress is simply looking at number of null
cells per workbook etc. The problem being that each of the workbooks have
been split up to make the size of the data more manageable. Depending on the
workbook some have been split into 40 tabs!

So rather than running the progress macro on each of the 40 tabs i want to
some way copy each of the tabs and dump this into one tab and then run the
progress macro.

Any help would be great - if this could be completed through some sort of
macro it would be brilliant. Each of the s/s have the same number of columns
etc

Cheers Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
broro183
 
Posts: n/a
Default copy 40 tabs into 1 tab automatcially??


Hi Pete,

The following code ignores your request to copy them to a new sheet b/c
if you don't actually use the completed sheet for anything I don't
think it is necessary. However, if it is used, create code for copying
the required range to a "Master Sheet" & insert this in the "For Each"
construct (I've provided a possible solution). This solution will pop
up std Excel warnings if there is not enough space to copy data etc.

Sub RunProgressMacroForAllSheets()
Dim sh As Worksheet
Dim LastRow As Long
Dim MasterSheet As Worksheet
Set MasterSheet = ActiveSheet 'change if needed

For Each sh In ActiveWorkbook.Worksheets
LastRow = MasterSheet.Cells(rows.Count, "A").End(xlUp).Row
sh.UsedRange.Copy MasterSheet.Range("A" & LastRow + 1)
Next sh
'enter the code of your "progress macro" here
End Sub

Note, if you normally run the progress macro on the active sheet,
you'll probably need to change all the phrases "activesheet" to
MasterSheet.

hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=527083

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
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
Copy Sheets Macro WBTKbeezy Excel Worksheet Functions 8 February 24th 06 07:53 PM
Copy worksheet & maintain cell reference across worksheets dingy101 Excel Worksheet Functions 3 January 2nd 06 10:51 AM
Copy tabs(sheets) from workbook without link to original source Rich Ulichny Excel Discussion (Misc queries) 3 August 25th 05 02:11 AM
Copy without Hidden Cols - How abrogard Excel Discussion (Misc queries) 1 July 15th 05 07:54 AM


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