Range.Select method no longer taking False argument to Add to Selection without replacing?

Skyybot

Well-known Member
Joined
Feb 18, 2023
Messages
875
Office Version
  1. 365
Platform
  1. Windows
There is no code here to "fix". I'm just simply wondering why this argument no longer seems to work. I used to be able to add to a selection by using
VBA Code:
myRange.Select False
. Where the False argument would "Add" to the current Selection instead of replacing it. Has this function been removed?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The built-in Select method does not nor has ever had an optional argument. I think you are probably confusing it with something else, but I don't know what. Or maybe you had an add-in or other custom function that would do this.

For what you are describing I would use
VBA Code:
Union (Selection, myRange).Select
 
Upvote 0
The built-in Select method does not nor has ever had an optional argument. I think you are probably confusing it with something else, but I don't know what.
The OP is thinking of the Select method for worksheets which does have the optional argument he is referring to.
 
Upvote 1
Just add to what Rick has stated, the MS documentation for the Sheets.Select method specifically states Replace is "Used only with sheets"

1705256004143.png
 
Upvote 0

Forum statistics

Threads
1,215,992
Messages
6,128,165
Members
449,428
Latest member
d4vew

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