Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default 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 ***
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
count rows in a column for looping damorrison Excel Discussion (Misc queries) 2 April 8th 07 10:30 PM
Looping until empty column theguz Excel Discussion (Misc queries) 1 August 4th 05 07:04 PM
Multiple Column Cell Compare looping through Rows nickg420[_7_] Excel Programming 2 August 2nd 04 05:15 PM
Next Empty Column in Row scain2004[_20_] Excel Programming 1 June 16th 04 07:20 AM
looping from one column to the next Brad Zenner Excel Programming 0 July 21st 03 08:41 PM


All times are GMT +1. The time now is 10:35 AM.

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"