set range with offset

rki1966

Active Member
Joined
Feb 1, 2004
Messages
351
In my macro I have counter that sets the location of offset by 1 row but want to use the value of colcnt2 as the column number. I do not want to add one to each time.


Here is the row offset which I want to increase by one. This part works.
Set Allocation = Allocation.Offset(rowoffset:=1)

Please let me now if you need more details.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Sorry, I haven't had much of a chance to look at this more. A pile of work got dropped off that I need to hammer through before I can check this out. I've taken note of this post and I'll hopefully be able to provide a solution at some point today.
 
Upvote 0
Rki,

I apologize for the wait, I have found some time today to revisit this and try to solve it. Would you please describe to me where exactly the values for Allocation, Prices, and Target are being pulled from? I tried working with the named ranges, but without having an idea of what your input data looks like, it is rough for me to find a working solution that will fit your needs.
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,121
Members
449,066
Latest member
Andyg666

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