Bug 140337 - In 7.1.0.3, the Basic macro of calc shows the error "CellAddress method is missing.
Summary: In 7.1.0.3, the Basic macro of calc shows the error "CellAddress method is mi...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86 (IA32) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-11 13:14 UTC by camper
Modified: 2021-09-11 03:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description camper 2021-02-11 13:14:49 UTC
Description:
This is about a macro in Calc. I have a Calc Basic macro that I set up about three years ago, and it worked fine until 7.0.4. But in 7.1.0.3, it doesn't work anymore.

The error dialog looks like this BASIC Runtime Error. The following property or method was not found: CellAddress.

The macro, which is assigned to a button and deletes the row with the selected cell, looks like this

Sub delete_Click()
    Dim oSheet As Object
    oSheet = ThisComponent.CurrentController.ActiveSheet
    dim oActiveCell As Object
    dim currRowNum As Long
    oActiveCell = ThisComponent.CurrentSelection
    currRowNum = oActiveCell.CellAddress.Row
    oSheet.Rows.removeByIndex(currRowNum, 1)
End Sub

Steps to Reproduce:
1. Create a Calc file
2. Put text in some cells
3. Set up a button and assign the macro above.
4. Select one of the cells and then press the button.

Actual Results:
error "CellAddress method is missing.

Expected Results:
The row with the selected cell will be deleted.


Reproducible: Always


User Profile Reset: No



Additional Info:
When I run it with 7.0.4 on the same machine, it works fine.
Both 7.0.4 and 7.1.0.3 have been converted to Japanese by installing the Language pack.
Comment 1 himajin100000 2021-02-11 13:49:40 UTC
at least not reproducible on Windows

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL
Comment 2 Xisco Faulí 2021-02-11 14:33:48 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 QA Administrators 2021-08-11 03:59:03 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2021-09-11 03:53:08 UTC
Dear camper,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp