![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 11
|
Hello,
I want to define a selection by variables. Below is my best shot, sorry, I am new: Dim Col As String Dim Row As Integer Dim RangeA As Range Col = "A" Row = 1 RangeA = "Col&Row:B3" Range(RangeA).Select OR with same definitions I try Col = "A" Row = 1 Range("Col&Row:B3").Select Both fail. How can I do want I want to accomplish? (I have counted the number of rows filled by a certain text, a number that is variable, and would like to create an excact selection based off that number.) Thanks ahead oh gurus, Luke Campbell |
|
|
|
|
|
#2 |
|
Join Date: Mar 2002
Posts: 15
|
Dim Col As String
Dim Row As Integer Dim RangeA As Range Col = "A" Row = 1 Set RangeA = Range(Col & Row & ":B3") RangeA.Select |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|