![]() |
#1
|
|||
|
|||
![]()
I have a VBA application I've developed, and one line of code works fine on my computer but refuses to work on another.
The code in question is designed to read the value of a particular cell of the spreadsheet that contains the app. It looks like this: Code:
If (Workbooks("FileConvert.xls").Worksheets("Sheet1").Range("B1").Value <> "") Then On my machine, this works fine. On the other one, it throws a "Subscript out of range" error. Both computers are running Excel 2002. I also tried referencing the sheet by index instead of name (i.e., "Worksheets(1)" instead of "Worksheets("Sheet1")"). Any ideas what could be going wrong here? It seems like a simple enough command. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
peter_lambros | Outlook | 1 | 12-06-2008 08:24 AM |
Excel error: "Too many different cell formats" | enviroko | Excel | 0 | 01-09-2008 07:27 AM |
"IF" "THEN" statements in Macros | mfgeng_iss | Misc | 0 | 10-04-2007 07:31 AM |
"open" or "open using" option not availa | ccd | Outlook | 0 | 09-22-2006 01:23 AM |