I am having trouble with the Range type of Input Box being cancelled. I am using the code below and upon cancel I receive an object required message.
What am I doing wrong?
![]()
Please Login or Register to view this content.
Thanks in advance
I am having trouble with the Range type of Input Box being cancelled. I am using the code below and upon cancel I receive an object required message.
What am I doing wrong?
![]()
Please Login or Register to view this content.
Thanks in advance
Last edited by nms2130; 06-29-2010 at 12:00 PM.
![]()
Please Login or Register to view this content.
Hello nms2130,
Here is another method you may be able to use. This method doesn't throw an error when the user cancels. This is because the macro uses a Variant. When the user cancels the input operation, it returns a Boolean value of False. When you select a Range, it returns a Variant Array.
This method is useful when only the Range values are needed. If you need to access formatting, formulas, or addresses then you need to use Bob's method.
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks