PeterBunde
New Member
- Joined
- Dec 7, 2016
- Messages
- 45
Folks!
My .xls file is stored on a Confluence page. When I download it, I have to press the activate editing button - which results in an error message:
The code that fails is:
I substituted the variable names with the real values and put it in a function then ran it, and the code runs fine:
I should tell you that the sheet "defects_of_category_store" is hidden (I use it to store an array which I then re-load into memory when the sheet is opened).
(If you could tell me how, I would attach the file)
BW Peter B Hansen
My .xls file is stored on a Confluence page. When I download it, I have to press the activate editing button - which results in an error message:
Run-time error '1004' Method 'Sheets' of object '_Global' failed
The code that fails is:
Code:
Value_ = Sheets(workingsheet).Cells(param2, param1).Value()
I substituted the variable names with the real values and put it in a function then ran it, and the code runs fine:
Code:
MsgBox(Sheets("defects_of_category_store").Cells(1, 1).Value())
I should tell you that the sheet "defects_of_category_store" is hidden (I use it to store an array which I then re-load into memory when the sheet is opened).
(If you could tell me how, I would attach the file)
BW Peter B Hansen