Bug 135088 - India Income tax returns excel file multiple macro errors (VBA)
Summary: India Income tax returns excel file multiple macro errors (VBA)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.4.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2020-07-24 03:15 UTC by johnks
Modified: 2023-05-16 17:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
demo data file containing macro errors (5.12 MB, application/vnd.ms-excel)
2020-07-24 03:16 UTC, johnks
Details
excel file containing unaltered macro file. use data from first file to check (2.77 MB, application/zip)
2020-07-24 03:17 UTC, johnks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnks 2020-07-24 03:15:37 UTC
Description:
The attached file is the india government income tax return preparation excel file and there are multiple macro errors in the same making the file unusable in libreoffice. i have listed some errors below

Steps to Reproduce:
1. open file. enable macros
2. click on buttons like "validate" sheet
3.

Actual Results:
1. "ActiveWorkbook.FollowHyperlink _
Address:="https://onlineservices.tin.egov-nsdl.com/etaxnew/tdsnontds.jsp""

2. "Application.CommandBars("Ply").Enabled = True"

3. "If Mid(Sheet1.Range("sheet1.SeventhProvisoFlag").Value, 1, 1) <> "N" Then"

4. "If UserForm1.Visible = True Then"

5. "widthForm = UserForm1.ProgressFrame.Width"

6. If UserForm1.ProgressFrame.Caption = "" Then

7. .lblmainProgPercDisp.Caption = Round(mainProcPerc, 2) & "%"

8. If Mid(Sheet1.Range("sheet1.SeventhProvisoFlag").Value, 1, 1) <> "N" Then

on and on when clicking on "validate" button

if i click on the side bar "calculate tax" 

9. Sheet3.Range("IncD.TDS").Value = 0

there are probably hundreds of macro errors

on and on when using 

Expected Results:
i have deleted the above problem code from macros and it is still not working. also attached will be a zip containing the original unaltered governmental excel file. 
the first file would be for demo data to be put in the excel from zip file


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.5.2
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: kf5; 
Locale: en-IN (en_IN.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 johnks 2020-07-24 03:16:39 UTC
Created attachment 163467 [details]
demo data file containing macro errors
Comment 2 johnks 2020-07-24 03:17:31 UTC
Created attachment 163468 [details]
excel file containing unaltered macro file. use data from first file to check
Comment 3 johnks 2020-07-24 03:17:52 UTC
https://www.incometaxindiaefiling.gov.in/downloads/incomeTaxReturnUtilities?lang=eng

you can download this file and others from above link
Comment 4 Robert Großkopf 2020-07-24 15:41:31 UTC
This isn't a bug for Base - database. Could be something for BASIC or Calc. I have changed the component to Calc.
Comment 5 Buovjaga 2020-12-07 17:58:34 UTC
Repro

Arch Linux 64-bit
Version: 7.2.0.0.alpha0+
Build ID: 43d07ddf487fae1b966abf00a36612b109ed01fc
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 7 December 2020
Comment 6 QA Administrators 2022-12-08 03:25:42 UTC Comment hidden (obsolete)
Comment 7 johnks 2023-02-11 09:38:24 UTC
confirmed in 

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Flatpak
Calc: threaded
Comment 9 raal 2023-03-18 12:32:03 UTC
tested with Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7a7eb4aa21ca0c83db825fe8d5a5278611b391d8
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Actual Results:
1. "ActiveWorkbook.FollowHyperlink _
Address:="https://onlineservices.tin.egov-nsdl.com/etaxnew/tdsnontds.jsp""
  workaround: delete _ and keep command on one line

2. Private Function DecodeBase64(ByVal strData As String) As Byte()
     error Unexpected symbol (

3. Application.CommandBars("Ply").Enabled = True

if i click on the side bar "calculate tax" I do not get any error, some form open, but it is probably incomplete.

So, it's better, but still not fully working.
Comment 10 johnks 2023-05-16 17:10:02 UTC
(In reply to raal from comment #9)
> tested with Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: 7a7eb4aa21ca0c83db825fe8d5a5278611b391d8
> CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
> Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
> Calc: threaded
> 
> Actual Results:
> 1. "ActiveWorkbook.FollowHyperlink _
> Address:="https://onlineservices.tin.egov-nsdl.com/etaxnew/tdsnontds.jsp""
>   workaround: delete _ and keep command on one line
> 
> 2. Private Function DecodeBase64(ByVal strData As String) As Byte()
>      error Unexpected symbol (
> 
> 3. Application.CommandBars("Ply").Enabled = True
> 
> if i click on the side bar "calculate tax" I do not get any error, some form
> open, but it is probably incomplete.
> 
> So, it's better, but still not fully working.



https://gist.github.com/brucemcpherson/6937529

check the code for decodeBase64 on this. its the same and it is not working in libreoffice.