I have a workbook created in Excel that I've been using for a long time without any problems. In attempting to run a macro in Calc (first time in Calc), I'm getting the following error message:
BASIC runtime error.
'91'
Object variable not set.
It points to line 16 of the code:
8 Sheets("avgs").Select
9 Rows("3:3").Select
10 Selection.Insert Shift:=xlDown
11 Range("A4").Copy
12 Range("A3").Select
13 ActiveSheet.Paste
14 Dim rngC As Range
15 For Each rngC In Range("A3")
16 rngC = DateSerial(Year(rngC), Month(rngC) + 1, Day(rngC))
17 Next
Any ideas how to get this to run in Calc?
Also, is there a way to get the list of the workbook's macros to show immediately, without having to dive into the folders to find them?
BASIC runtime error.
'91'
Object variable not set.
It points to line 16 of the code:
8 Sheets("avgs").Select
9 Rows("3:3").Select
10 Selection.Insert Shift:=xlDown
11 Range("A4").Copy
12 Range("A3").Select
13 ActiveSheet.Paste
14 Dim rngC As Range
15 For Each rngC In Range("A3")
16 rngC = DateSerial(Year(rngC), Month(rngC) + 1, Day(rngC))
17 Next
Any ideas how to get this to run in Calc?
Also, is there a way to get the list of the workbook's macros to show immediately, without having to dive into the folders to find them?
My Computer
- Computer type
- PC/Desktop
- OS
- Windows 7 Ultimate x64