Bug 122394

Summary: changing named ranges content via vba macro will not update cell formula
Product: LibreOffice Reporter: Oliver Brinzing <oliver.brinzing>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: drewjensen.inbox, oliver.brinzing
Priority: medium    
Version: 4.4.7.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=122378
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108908    
Attachments: test vlookup changed range vba
test vlookup changed range

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