Running a VBA macro as in an MS Excel file

Hello.

I am a new user.

I have a problem.

I have an MS Excel file that when starting a macro displays the message - Enter the path to the txt file for import. After entering it, it loads the file and processes it into a graphic, which immediately converts to a pdf file.

If I open the Excel file in Libre Office and start the macro, it shows an error.
BASIC startup error.

‘423’
Property or method not found: Sheets.
How to fix it or create a new file in Libre Office.

Thanks.