Ralajer
Active Member
- Joined
- Jul 24, 2008
- Messages
- 416
I have several macros that fail if the selection is not continuous. Typically they are ones that use excel's built commands or operations, I will get:
Is there a built-in way to test if a selection is a multiple or non-continuous range, so I can switch to using a loop to instead of the faster built-in operations. I know I can write code to test the range but I have written elaborate sub's in the past only later to learn all I need was line of code.
Thanks
Run-time error '1004'
That command cannot be used on multiple selections.
That command cannot be used on multiple selections.
Is there a built-in way to test if a selection is a multiple or non-continuous range, so I can switch to using a loop to instead of the faster built-in operations. I know I can write code to test the range but I have written elaborate sub's in the past only later to learn all I need was line of code.
Thanks