PC Review


Reply
Thread Tools Rate Thread

Automatically increment cell reference

 
 
chrismv48
Guest
Posts: n/a
 
      24th Sep 2008
Hello,

Bit of a rookie when it comes to VBA so bare with me.

I have a vlookup formula, whose target is the cell E3.

E3 in turn points to a cell from another worksheet, lets say it's =July!A10.

How do I have a macro run so that it increases E3's cell reference by 1 row
each time? ie., 1st run =July!A11, 2nd loop =July!A12, 2nd loop =July!A13
and so on (I already have separate code that I will insert into the loop).
Then I'd want the macro to stop once it reaches the last row of data on
July's worksheet, which unfortunately is dynamic. Maybe the user can be
prompted to select the range to run the macro for? I don't know...

Any help would be greatly appreciated!





 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increment a cell reference in a row Mike Microsoft Excel Misc 12 13th May 2009 10:04 PM
How to increment a cell reference in a row Mike Microsoft Excel Misc 0 13th May 2009 08:18 PM
Increment cell reference Larry Kahm Microsoft Excel Misc 1 8th Apr 2008 01:40 AM
Increment Cell Reference =?Utf-8?B?UGVycnk=?= Microsoft Excel Discussion 4 8th Mar 2006 08:15 AM
A2 cell reference increment cejones Microsoft Excel Discussion 3 8th Nov 2005 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 PM.