LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Three loops to this circus

I am trying to brainstorm some ideas for the following issue.

I have several worksheets that I would like to consolidate into a single
sheet. On each sheet the rows and columns are slightly diffrent. What I would
like to do is build the ConsolidatedSheet by looping through all the
worksheets which fulfil a criteria and then populate the ConsolidatedSheet at
each pass checking both row and column for matches if none found then
creating new row or column

For Each Wksht In ThisWorkbook.Worksheets
Wksht.Activate
Select Case Left(Wksht.Name, 1)
Case Is = "Q"

Call NewSub 'Inside of which I am thinking two loops( row &
column)
'which will iterated through cells on
the Wksht and check
' for matches in (column A, ActiveRow)
and
'(Activecolumn,Row 1) and in the event
of a
' mismatch write the code to add another
column or row
Case Else

End Select
Next


Like many beginners I occasionally complicate the simple and at times
reinvent the wheel. Is there any easier way?

 
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
loops Capp Excel Programming 1 September 28th 05 07:48 PM
Do Loops No Name Excel Programming 1 July 20th 04 04:47 PM
Loops etc. Jonathan Vickers Excel Programming 6 February 28th 04 05:35 PM
help with loops Rick B[_6_] Excel Programming 8 January 28th 04 12:32 AM
Loops PaulSinki Excel Programming 3 December 10th 03 05:01 PM


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