Excel 2000: Selecting multiple cells using ActiveCell.Offset

Paddington1881

Board Regular
Joined
Jan 12, 2005
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
Hi

Is there a way of using the ActiveCell.Offset to copy multiple, but not adjacent cells?

For example if my activecell was A1, I want to copy cell D1 and F1 using offset (but not copy E1).

The only code I can find is -

Range(ActiveCell.Offset(0, 3), ActiveCell.Offset(0, 5)).Select

But this also selects cell E1...

Any ideas much appreciated.

Thanks
Darren
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
You would need to pass the refs as a string as per:

Code:
Range(ActiveCell.Offset(0, 3).Address & "," &  ActiveCell.Offset(0, 5).Address).Select

or use Union:

Code:
Union(Activecell.Offset(,3),Activecell.Offset(,5))
 
Upvote 0

Forum statistics

Threads
1,195,640
Messages
6,010,880
Members
441,571
Latest member
stolenweasel

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
Top