View Single Post
 
Old 02-28-2012, 01:23 PM
vthomeschoolmom vthomeschoolmom is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Feb 2012
Posts: 23
vthomeschoolmom is on a distinguished road
Default automating a repetitive process

I am a recovering VB developer, so I know VBA. I am not super familiar with the Excel object model. I want to write a macro in a workbook. I have an unknown # of rows of data. I want to navigate to the first row that does not contain data. I then want to create a function in that cell =MAX(A2, Ax) where x is the last row of data. I then want to replicate that formula for each column until the first column without data is reached.

Does anyone have pointer to a referenced? Do I somehow iterate through the rows until I get an empty one? And likewise the columns?

A nudge would be useful. Thanks

S
Reply With Quote