I'm not sure what you're trying to accomplish, but....

First of all, I believe the format of .Offset is .Offset(row,column)
which means activecell.offset(1,0).select moves down one ROW
not to the right one COLUMN

Paul



________________________________
From: JsinSk <jsin...@gmail.com>
To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com>
Sent: Tue, April 13, 2010 11:18:08 PM
Subject: $$Excel-Macros$$ Move from column a to b to c in loop

Hello again friends, I am cannot figure out how to make this work the
way I want :(

I need this to run in column a, then b, then c... but cannot figure
out how to do it. Can someone please help with this matter. I'm sure
it's a very simple solution!


Sub Macro1()


ActiveCell.Offset(-1, 0) = 1
Do While Not IsEmpty(ActiveCell.Value)

ActiveCell.Value = (ActiveCell.Value + 1) * ActiveCell.Offset(-1,
0).Value
ActiveCell.Offset(1, 0).Select
Loop

End Sub

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our Facebook Group @ http://www.facebook.com/group.php?gid=287779555678
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

To unsubscribe, reply using "remove me" as the subject.

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our Facebook Group @ http://www.facebook.com/group.php?gid=287779555678
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to