Change the size of a range

SBF12345

Well-known Member
Joined
Jul 26, 2014
Messages
614
I have a range defined by two variables. Both variables are located in a single column. I would like to select and copy the cells in the adjacent range. How can I expand the selection defined by the values in the first column to include the values in the second column.

I tried the code below but received an "application defined or object defined error" error.

Code:
ActiveWorkbook.Sheets("ActiveSheet").Range(RngStart, RngEnd2).Resize(0, 1).Copy
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
That seems to be working...I am having another related issue come up. I am having my range variables with dates starting in February return the month of December. Its as if it is adding an additional "1" to the value in the cell use to set the range variable. Wha?
 
Upvote 0
That seems to be working...I am having another related issue come up. I am having my range variables with dates starting in February return the month of December. Its as if it is adding an additional "1" to the value in the cell use to set the range variable. Wha?
Post your code.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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