I still can't get this code to work.
I thought I was pretty close here, but I can't seem to find a way to get Worksheets("Sheet1"
to work. I get 'method worksheets failed', after seeing the object browser, I see that I should be using Worksheet instead, but VB won't even recognize it at all.
Dim XLSsheet As Object
Set XLSsheet = GetObject("c:\excelcash1.xls", "excel.sheet"
XLSsheet.Application.Visible = True
For rwIndex = 1 to 4
For colIndex = 1 to 10
With Worksheets("Sheet1"
.Cells(rwIndex, colIndex)
If .Value < .001 Then .Value = 0
End With
Next colIndex
Next rwIndex
I must have 30 VB books here but they don't cover office objects much, what books are you guys using for this mess?
I thought I was pretty close here, but I can't seem to find a way to get Worksheets("Sheet1"
Dim XLSsheet As Object
Set XLSsheet = GetObject("c:\excelcash1.xls", "excel.sheet"
XLSsheet.Application.Visible = True
For rwIndex = 1 to 4
For colIndex = 1 to 10
With Worksheets("Sheet1"
If .Value < .001 Then .Value = 0
End With
Next colIndex
Next rwIndex
I must have 30 VB books here but they don't cover office objects much, what books are you guys using for this mess?