Home » excel » vba – Excel macro: Add data to existing named range

vba – Excel macro: Add data to existing named range

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have a named range “ABC”, range is (“A1”, “A3”, “A5”). Now I need to use Macro to extend the range to (“A1”, “A3”, “A5”, “A7”), that is, adding “A7” to the existing named range “ABC”.

Any ideas to solve this problem?

Thanks in advance!

How to&Answers:
Application.Union(Range("BLAH"), Range("A7")).Name = "BLAH"