SeaweedOPM
Technical User
Please i have spent all day trying to find out how to select a different sheet. I can do anything with a cell
AxSpreadsheet1.Cells(6,3) = 345.43
AxSpreadsheet1.Cells(4,2) = texbox1.Text
Everything with the current sheet is perfect but aside from the fact it places info into whatever the active sheet is.
I've tried these with no luck:
AxSpreadsheet1.Sheets(2).Select
AxSpreadsheet1.Sheets(2).Cells(3,5) = 34
AxSpreadsheet1.WorkSheets(3).Select
AxSpreadsheet1.WorkSheets(3).Cells(4,2) = 432
AxSpreadsheet1.Item(3).Select
and so on...
please let me know, I have a 6 sheet excel file with tons of formulas that imports beautifully.
AxSpreadsheet1.Worksheets.Count 'Even works!
AxSpreadsheet1.Cells(6,3) = 345.43
AxSpreadsheet1.Cells(4,2) = texbox1.Text
Everything with the current sheet is perfect but aside from the fact it places info into whatever the active sheet is.
I've tried these with no luck:
AxSpreadsheet1.Sheets(2).Select
AxSpreadsheet1.Sheets(2).Cells(3,5) = 34
AxSpreadsheet1.WorkSheets(3).Select
AxSpreadsheet1.WorkSheets(3).Cells(4,2) = 432
AxSpreadsheet1.Item(3).Select
and so on...
please let me know, I have a 6 sheet excel file with tons of formulas that imports beautifully.
AxSpreadsheet1.Worksheets.Count 'Even works!