ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Private Sub on the fly (https://www.excelbanter.com/excel-programming/353891-private-sub-fly.html)

michael v

Private Sub on the fly
 
Is it possible to create this using code - not just writing the code below

Private Sub TextBox1_Change()
Cells(6, 18).Value = Application.Sheets("Sheet1").TextBox1.Text
End Sub

.....but to put this code in as code using other code....:)



Norman Jones

Private Sub on the fly
 
Hi Michael,

See Chip Pearson's page on VBE programming at;

http://www.cpearson.com/excel/vbe.htm


---
Regards,
Norman



"michael v" wrote in message
...
Is it possible to create this using code - not just writing the code below

Private Sub TextBox1_Change()
Cells(6, 18).Value = Application.Sheets("Sheet1").TextBox1.Text
End Sub

....but to put this code in as code using other code....:)





michael v

Private Sub on the fly
 
Thanx a lot....seems to be just what I needed...


"Norman Jones" wrote in message
...
Hi Michael,

See Chip Pearson's page on VBE programming at;

http://www.cpearson.com/excel/vbe.htm


---
Regards,
Norman



"michael v" wrote in message
...
Is it possible to create this using code - not just writing the code

below

Private Sub TextBox1_Change()
Cells(6, 18).Value = Application.Sheets("Sheet1").TextBox1.Text
End Sub

....but to put this code in as code using other code....:)








All times are GMT +1. The time now is 09:23 AM.

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