ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell reference to userform (https://www.excelbanter.com/excel-programming/334707-cell-reference-userform.html)

Jens Peter Nielsen

Cell reference to userform
 

--
I am just a beginner in vba programming for excel.

I need to show the number of a specific cell in the textlabel on my form.
How do i get the number to be shown?

Thanks

Ron de Bruin

Cell reference to userform
 
Use this event in the Userform module

Private Sub UserForm_Initialize()
Me.Label1.Caption = Sheets("Sheet1").Range("A1").Value
End Sub

It runs when you open the userform

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jens Peter Nielsen" wrote in message ...

--
I am just a beginner in vba programming for excel.

I need to show the number of a specific cell in the textlabel on my form.
How do i get the number to be shown?

Thanks





All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com