Bug 94665 - Range Functions works only one time
Summary: Range Functions works only one time
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 11:10 UTC by Zsolt
Modified: 2015-10-01 14:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Testfile with Range function (10.98 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-10-01 11:10 UTC, Zsolt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zsolt 2015-10-01 11:10:09 UTC
Created attachment 119164 [details]
Testfile with Range function

I have a Function like this
Public Function Oszt(x as Integer) as Range

It give me back a Range. (The Functions with one Cell return value hasn't any problem.) It works me only one time. The Calc doesn't refresh the output, if I change the input Cell.
If I have more than 1 row with input and Functions, the Calc give me the first output many times.
I seted a breakpoit in to my Basic code. the code runs, and make the correct output, but this output doesn't arrive to the Cells. The Calc Cells become old numbers.
Comment 1 Zsolt 2015-10-01 14:12:48 UTC
Sorry it is my fault. The Function should be return as Variant.

Public Function Oszt(x as Integer) as Variant

If it is so defined, than it works fine.
Comment 2 raal 2015-10-01 14:16:51 UTC
(In reply to Zsolt from comment #1)
> Sorry it is my fault. The Function should be return as Variant.
> 
> Public Function Oszt(x as Integer) as Variant
> 
> If it is so defined, than it works fine.

Closing