Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Traversing Rows

assuming you mean a row of data

varr becomes a 1 by 1, 1 by 26 array.
Dim i as long, varr as variant, sStr as String
for i = 2 to 20
varr = Range(cells(i,1),cells(1,26)).Value
for j = 1 to ubound(varr,2)
sStr = sStr & varr(1,j) & ","
Next
debug.print i, sStr
sStr = ""
Next

--
Regards,
Tom Ogilvy

"Clarke Fielding" wrote in message
...
I am new at Excel VBA programming and I was wondering
what the best/efficient way of reading in all of the
columns of a given record into variables for processing
and then moving to the next row.

Any help will be appreciated.



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
colating multi rows of data into single rows - no to pivot tables! UKMAN Excel Worksheet Functions 4 March 12th 10 04:11 PM
traversing a filtered range (excel 2007) parahumanoid Charts and Charting in Excel 3 November 2nd 09 08:11 PM
Auto extract data & inserts rows additional rows automatically Meeru Excel Discussion (Misc queries) 3 September 9th 09 01:46 PM
Enabling option „Format rows“ to hide/unhide rows using VBA-code? ran58 Excel Discussion (Misc queries) 0 July 28th 09 03:46 PM
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM


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