![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: May 2002
Posts: 91
|
i want to put the range in a variable and use it in range method.
i tried this , it is not working t = "d6:d7" Range(t).Select |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
Works for me...
What error are you getting? K |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Worked for me ?? |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: May 2002
Posts: 91
|
object doesn't this property or method
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: May 2002
Posts: 91
|
i got it , i didnt put Dim statement...
Is there a function to get cell name |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
Mine worked without a dim statement. Not sure why it is necessary. I even dimensioned t as a variant and it worked.
Anyway, you got it working, so does it really matter...? As for a cell name, if you mean address, you can use ActiveCell.Address and will get something like $A$1. Or ActiveCell.Row and ActiveCell.Column will give you 1 and 1. Or activecell.name will give =Sheet1!$A$1. K |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|