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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,223,967
Messages
6,175,667
Members
452,666
Latest member
AllexDee

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