ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   data from userform to a cell on an execel sheet (https://www.excelbanter.com/excel-programming/353378-data-userform-cell-execel-sheet.html)

David Marshall

data from userform to a cell on an execel sheet
 
I'm looking to enter data from a userform to a specific cell on an Excel
spreadsheet, then print a form from this data.

Tom Ogilvy

data from userform to a cell on an execel sheet
 
Private Sub CommandButton1_Click()
With Worksheets("Sheet1")
.Range("A1").Value = Userform1.TextBox1.Text
.Printout
End With
UnLoad Userform1
End Sub


--
Regards,
Tom Ogilvy

"David Marshall" <David wrote in message
...
I'm looking to enter data from a userform to a specific cell on an Excel
spreadsheet, then print a form from this data.





All times are GMT +1. The time now is 04:57 PM.

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