ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Variabel and caption in userform (https://www.excelbanter.com/excel-programming/310782-variabel-caption-userform.html)

Gary Brown[_7_]

Variabel and caption in userform
 
Alvin,
Assuming the title you want to use is in cell A1...
In the form module, put the following.
'/====================================/
Private Sub UserForm_Activate()
Me.Caption = Application.ActiveSheet.Range("A1").Value
End Sub
'/====================================/
HTH,
Gary Brown

-----Original Message-----
Hi

Can i use a variabel in my caption in my userform
sp the titel in my userform have the value of my variabel
and if i can how? And where shall i define my variabel?

Best regards

Alvin

.



All times are GMT +1. The time now is 06:47 AM.

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