ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   txtbox code (https://www.excelbanter.com/excel-programming/285254-txtbox-code.html)

Sal_sal

txtbox code
 
I have created a form and want to display cell
information from a spreadsheet in a textbox on that form -
any ideas for the VBA code?

Thanks

BrianB

txtbox code
 
Use the Initialise event of the form :-

Private Sub UserForm_Initialize()
TextBox1.Text = ActiveSheet.Range("A1").Value
End Sub


---
Message posted from http://www.ExcelForum.com/



All times are GMT +1. The time now is 11:29 PM.

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