![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
I am trying to determine how to create a named cell range when I know the row number and the column number. For example, I find the last row in a spread sheet, assume LastRow=20, I then want to create a named cell range, assume My Cell, so that MyCell=A20. I then want to select this range,
Range("MyCell").Select. To complicate this, LastRow needs to be dynamic, so that I need to have MyCell=ALastRow . I am not sure how to create a named cell renage where the row number can vary. Any help is appreciated.Thanks. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
I'm not sure if this will help you or not?
Look at the code carfully before running it. It will delete all of your named ranges.
Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|