Excel graphing macro - run-time error 1004

Post Reply
ebor
Posts: 2
Joined: Wed May 29, 2019 9:36 am

Excel graphing macro - run-time error 1004

Post by ebor »

Hi,
when I excute the Excel Macro I get error 1004: Method 'Range' of object '_Global' failed
at this line
Range("AM1:AR" & numRows).Select

I am using Office 365 ProPlus Excel and Windows 10. CSV is saved under Android.

Using the "Online Graphing" with the same CSV it is OK.

Best regards
User avatar
James
Site Admin
Posts: 1083
Joined: Wed Jan 02, 2013 9:06 pm

Re: Excel graphing macro - run-time error 1004

Post by James »

Please email me your CSV file and a screenshot of the Excel data created in the GraphingData tab after the fail.
Support@MuseMonitor.com
User avatar
James
Site Admin
Posts: 1083
Joined: Wed Jan 02, 2013 9:06 pm

Re: Excel graphing macro - run-time error 1004

Post by James »

On some European versions of Excel, CSV files (which stands for Comma Separated Values), are set to use a semi colon instead of a comma.

You can change this back to a comma in your system regional settings.

Go to windows settings, choose "Click,Language And Region", then "Change date, time or number formats"

In the dialog that opens, click "Additional Settings" and change the "List separator" to a comma.

Alternatively, if you open the CSV file with notepad, you can add this text to a new row top of the file to let Excel know how to handle the separator:

Code: Select all

sep=,
ExcelCSVSep.png
ExcelCSVSep.png (25.4 KiB) Viewed 2141 times
Now when you load it, it will know to put each item in it's own column and the Macro will work.
ebor
Posts: 2
Joined: Wed May 29, 2019 9:36 am

Re: Excel graphing macro - run-time error 1004

Post by ebor »

Thank you! Great app, great support!
Francois
Posts: 1
Joined: Mon Jun 17, 2019 12:17 pm

Re: Excel graphing macro - run-time error 1004

Post by Francois »

Hi James,
Same issue with error 1004 (I use a French Excel and a muse 2)
I followed your instructions, but both don't work.
May I send you my CSV file ?
Thanks
François
User avatar
James
Site Admin
Posts: 1083
Joined: Wed Jan 02, 2013 9:06 pm

Re: Excel graphing macro - run-time error 1004

Post by James »

Sure. Also EMail me a screenshot of what you see in Excel when you open the file.
Is everything in the first column, or spread out properly?
Post Reply