ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Looping until empty column (https://www.excelbanter.com/excel-programming/336400-looping-until-empty-column.html)

theguz[_3_]

Looping until empty column
 

Here is my dilemma. I can do VBA in Access, but for some reason I just
don't get it in excel. What I want to do is go down a column and store
that info in a variable. I want this to happen untill there is no more
data. Once I have that data I want to go to another page and store the
data in an empty column. I want the program to auto. find the empty
column. Thank You in advance.
theguz


--
theguz
------------------------------------------------------------------------
theguz's Profile: http://www.excelforum.com/member.php...o&userid=24918
View this thread: http://www.excelforum.com/showthread...hreadid=392941


Ronin

Looping until empty column
 
Try

Do Until ActiveCell=""
'Put your store statement in between the "Do" & Activecell.offset
statement
ActiveCell.Offset(0,1).Select
Loop

"theguz" wrote:


Here is my dilemma. I can do VBA in Access, but for some reason I just
don't get it in excel. What I want to do is go down a column and store
that info in a variable. I want this to happen untill there is no more
data. Once I have that data I want to go to another page and store the
data in an empty column. I want the program to auto. find the empty
column. Thank You in advance.
theguz


--
theguz
------------------------------------------------------------------------
theguz's Profile: http://www.excelforum.com/member.php...o&userid=24918
View this thread: http://www.excelforum.com/showthread...hreadid=392941



Edward Ulle

Looping until empty column
 
A similar way to do it is:

i = 0
While Not IsEmpty(Range("A1").Offset(i, 0))
i = i + 1
Wend



*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 03:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com