Range selection

  • Thread starter Thread starter Sagaron
  • Start date Start date
S

Sagaron

Hi
I am struggling with defining a range.
I want to specify the range in the normal excel worksheet and want th
vba code to pick this up.
For eg , range i want to select is a1:a3 on sheet1 which I have type
in say cell b1 in the sheet as "a1:a3"
How do I use vb code to pick up on what I typed in b1 to select a1:a3


Thx
Ra
 
try

Code:
--------------------

Sub test()
With Sheets("Sheet1")
.Range(.Range("b1").Value).Select
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top