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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to link textbox value to a specific cell value? 1

Status
Not open for further replies.

gulong

Technical User
Sep 10, 2001
4
CH
Hi, I am using VBA in excel and I have difficulties to assign textbox a value from worksheet cells. Can anybody help me out? Thank you very much in advance.
 
Dim oSheet As Worksheet
Dim oBook As Workbook
Dim oCell As Range

Set oBook = ActiveWorkbook
Set oSheet = oBook.Worksheets("Sheet1")
Set oCell = oSheet.Range("H26")

Me.TextBox1.Text = oCell.Text

Set oCell = Nothing
Set oSheet = Nothing
Set oBook = Nothing
 
Hi,
I have used a combobox, and I used in the properties of it
ListfillRange: Data!A2:A5 data is my sheet where are stored
my values in the cells a2 => till a5
and if you want it is possible in the Linkedcell set the cell where are stored your resultat ...
I hope it will give you an idea ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top