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!

Excel cells to a label box on a form

Status
Not open for further replies.

Charlotte11

Programmer
Feb 2, 2011
1
GB
I need help plugging a cell, say B4 from a dbf file in excel into a label box on a form in VBA.

Then I need to take B12 and plug that into a different label box and so on.

I am a beginer and don't have a clue how to do this.

Can anyone help?
 
In the UserForm_Initialize() proc use something like :

Label1 = Sheets("Sheet1").Range("B4")

and repeat for other labels. The same approach could wotk for textboxes etc.

AC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top