Hi folks
Can anyone tell me why this code . . .
rem Get “Capital” (CBA Transactions) sheet and ranges
Dim CapTrans, CapTotal
CapTrans = ThisComponent.Sheets(“CBA Transactions”)
CapTotal = CapTrans.getCellRangeByName(“CapTotal”)
. . . is throwing this . . .
BASIC runtime error.
An exception occurred
Type: com.sun.star.uno.RuntimeException
Message: ./sc/source/ui/unoobj/cellsuno.cxx:4742.
. . on the last line ? The sheet was copied from another file and it came over with all its named ranges intact - which I’ve tidied up to suit its new context - and everything looks good. Is it possible that there is some left over stuff from before it was copied ?
Cheers,
Aunty