selecting an individual cell from a range

mortgageman

Well-known Member
Joined
Jun 30, 2005
Messages
2,015
Easy question (I Hope)
If the following selects the entire range:
Range("Rpt_BorrowerCode").Select

How do I select the first (or ith) cell in that range

I have tried
Range("Rpt_BorrowerCode").Select[1]

and

Range("Rpt_BorrowerCode")[1].Select

Neither of which works
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi, Gene,

you were close
Code:
Range("Rpt_BorrowerCode")(1).Select

kind regards,
Erik

EDIT: perhaps a bit more info
Code:
Range ("Rpt_BorrowerCode").Item(1).Select

Code:
Sub test()
Dim i As Long

    With Range("Rpt_BorrowerCode")
    .Item(.Cells.Count).Select
        For i = 1 To .Cells.Count
        .Item(i) = "cell " & i
        Next i
    End With
        
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top