VBA - select range dynamically

wibni

New Member
Joined
Jun 15, 2011
Messages
33
Hi,
In Excel 2003, how can I change my range dynamically?
I want colum D to increase by 5 for every one of my loops.


Code:
FR = Range("C1:D" & LR).Find("RigSite", , xlValues, xlWhole, xlByRows, xlNext, False).Row
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This seems to do the trick.

FR = Range("C1:" & Cells(LR, 4).Address).Find("RigSite", , xlValues, xlWhole, xlByRows, xlNext, False).Row
 
Upvote 0
Hi,
In Excel 2003, how can I change my range dynamically?
I want colum D to increase by 5 for every one of my loops.
Code:
FR = Range("C1:D" & LR).Find("RigSite", , xlValues, xlWhole, xlByRows, xlNext, False).Row
I would be interested in knowing what it is that you are doing that made you asked this question.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top