Problem Merging Cell in VBA.

d34n0

Board Regular
Joined
Jun 28, 2004
Messages
121
Sheets("A").Select
Range("C65536").End(xlUp).Offset(1, 0).Select

The above code makes the selection of the cell i want but how can i select the cell below it at the same time and then merge the two cells?

Thanks :)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Do you actually want to merge the cells or combine the contents?

Perhaps
Code:
Sheets("A").Range("C65536").End(xlUp).Offset(1, 0).Resize(2, 1).Merge
 
Upvote 0

Forum statistics

Threads
1,203,742
Messages
6,057,108
Members
444,905
Latest member
Iamtryingman

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