Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RefEdit control 1

Status
Not open for further replies.

VBAva

Programmer
Jul 29, 2003
87
IE
Hello

ok i found the RefEdit control but am not quite sure how to do what i need so i require a little help please.

1. Make sure that only one cell is selected
2. Check for a value in a cell relative to the one selected
Offset (4,0)

thank you all

 
Range(RefEdit1.Value) returns range selected with RefEdit1 control. You can proceed with this like regular range:
[tt]Private Sub RefEdit1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
MsgBox Range(RefEdit1.Value).Cells.Count
End Sub

Private Sub RefEdit1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
MsgBox Range(RefEdit1.Value).Offset(4, 0).Value
End Sub[/tt]

combo
 
cool, cheers :)
i think that could be very useful, have a star :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top