Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Data in variable row numbers...

I use the following to find a header located in a row of cells. EndCol var
depends on the dataset size and Sub Call_Data operates on the data below the
header (in columns). This is repeated for Val2, Val3 etc..

Col = 1
For i = StrtCol To EndCol
If ActiveCell = Val1 Then
Call Get_Data
Else
ActiveCell.Offset(0, Col).Select
End If
Next i

The issue is that data is arranged in blocks, such that the next line of
headers+data is in a row below the last block of data (varies with the
dataset size). I therefore need:
- look for header in row, return data OR
- find next header row(done this), change row, look for header, return data
Repeat for other rows of headers
Repeat for Val2 etc...

Nested If, Else procedure probably should do it though can't get one to
work. Maybe faster if the macro can look for all Vals (1,2,3) in one row of
headers and then move on, though this is way beyond me at present...

Any resources, ideas would be great..

M.
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
Divide variable numbers into groups Marie Bayes Excel Discussion (Misc queries) 2 July 28th 09 06:53 PM
Adding variable range of numbers mwavra Excel Worksheet Functions 6 October 16th 08 04:58 PM
Average the last eight or nine (Variable) numbers in a row. Michael Excel Discussion (Misc queries) 3 December 11th 07 09:55 PM
extracting numbers from variable text JulianActon Excel Discussion (Misc queries) 8 November 7th 05 12:33 AM
VBA Cell row-column numbers to variable Joe[_19_] Excel Programming 1 July 29th 03 07:42 PM


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