vegasfoster
New Member
- Joined
- Feb 18, 2017
- Messages
- 9
Hi, so I just want populate some cells in a spreadsheet control box on my userform from data in the associated worksheet. I found sample code to get the data out,
But can't find an example to get data in. I've tried numerous things like
but no joy. I don't get any errors, but nothing happens.
I'm clearly not searching for the right thing.
Thanks for any help.
Private Sub PasteButton_Click()
ActiveCell.Value = Spreadsheet1.Range("B5")
Unload Me
End Sub
But can't find an example to get data in. I've tried numerous things like
Private Sub Spreadsheet1_Initialize()
Spreadsheet1.Range("A1") = Worksheets("Input").Range("Date")
End Sub
but no joy. I don't get any errors, but nothing happens.
I'm clearly not searching for the right thing.
Thanks for any help.