I found some code on a web site. When I tried it, I got a problem. I searched to find the resolution and found another web site with the identical statement:[vba] Dim wbMine as WorkbookThe error I'm getting is that "Workbooks" has a bad index. There is a workbook with that name on the indicated drive and directory. What gives?
...
Set wbMine = Workbooks("C:\data\Test4.xls")
...
[/vba]