![]() |
![]() |
|
|||||||
| 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: 20
|
Ive got a cell reference written in Cell A1 and I want a macro to select this cell?
Can any one help with the code? |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
to select a cell use
Range("A1").Select Why couldn't you have just recorded the macro? |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 20
|
I phrased that wrongly.
I want to copy the value in the cell and select the value in the cell. Eg In A1 there is 'C5' I want XL to select C5 |
|
|
|
|
|
#4 | |
|
Board Regular
Join Date: Mar 2002
Location: Hilo, Hawaii
Posts: 240
|
Quote:
If the value in A1 is a cell refeerence this will select it. That is if A1 has C5 in it the routine will select cell C5. Hope that is what your looking to do. Option Explicit Dim x As String Sub CommandButton1_Click() x = Range("A1").Value Range(x).Select End Sub [ This Message was edited by: KniteMare on 2002-03-07 08:23 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|