Bug 122394 - changing named ranges content via vba macro will not update cell formula
Summary: changing named ranges content via vba macro will not update cell formula
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2018-12-31 15:36 UTC by Oliver Brinzing
Modified: 2023-01-04 18:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test vlookup changed range vba (12.92 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-12-31 15:36 UTC, Oliver Brinzing
Details
test vlookup changed range (12.92 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-12-31 15:37 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Brinzing 2018-12-31 15:36:49 UTC
Created attachment 147909 [details]
test vlookup changed range vba

i noticed the problem while investigating issue
https://bugs.documentfoundation.org/show_bug.cgi?id=122378

- open attached "test_vlookup_changed_range_vba.ods"
- press button
- named range "Region" content is changed via:
  ThisWorkbook.Names("Region").RefersTo = "=Sheet1!$A$9:$B$11"
- but vlookup formula's in A2:A4 will not update
- a full hard recalc will not work
- the document keeps unmodifed

- to force a recalc, e.g. cell A2
  - select A2
  - press F2
  - press space
  - enter

btw.:
the problem does not happen if named ranges content is changed via lo api,
see "test_vlookup_changed_range.ods"
Comment 1 Oliver Brinzing 2018-12-31 15:37:38 UTC
Created attachment 147910 [details]
test vlookup changed range
Comment 2 Drew Jensen 2018-12-31 18:12:23 UTC
Confirmed using Ubuntu 18.04.1 with LO5.4.7 and 6.0.2.1 RC1.
Comment 3 QA Administrators 2021-01-02 03:45:23 UTC Comment hidden (obsolete)
Comment 4 Oliver Brinzing 2021-01-02 08:39:28 UTC
bug is still present in

Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc:
Comment 5 QA Administrators 2021-01-03 03:37:38 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-01-04 03:19:23 UTC Comment hidden (obsolete)
Comment 7 Oliver Brinzing 2023-01-04 18:24:56 UTC
reproducible with

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: default