Can anyone either provide a link to or an example of code for instantiating and using a Range object in Excel? I’m trying to create a macro that will instantiate a range object and assign to it a range of cells selected on the worksheet. It’s been a while since I did any VBA code in Excel so I’m having trouble remebering hwo to do this but I do recall that you use the Range object when working with a selection of more then cell. For the life of me I can’t figure out what I’m doing wrong and the on line help in Excel for the Range variable is of no use as far as I can tell.
To give you an idea of what I’m ultimately trying to do:
1) User select a range of cells; could be 2 or more in the same row or 2 or more in the same column.
2) User clicks button on worksheet to execute macro
3) Macro instantiates Range objeect and assigns it’s the currently selected cells.
This is where I can’t go any further. Every attempt to try and assign a Range objects range fails.
ANy help is very muych appreciated. I’m sure that once I see a good example I’ll be tapping my forehaed and sayin ‘but of course thats how you do it’.
Thanks
Bubba