简体   繁体   中英

Excel VBA Macro Runtime error '1004' for Histogram

I have an excel VBA code that is breaking when I am trying to build a histogram.

It was working completely fine before and now suddenly it is giving me this error. All macros have been enabled from the trust center.

When I debug it is jumping to the following line of code.

Application.Run "ATPVBAEN.XLAM!Histogram", ActiveSheet.Range("$A$2:$A$3597") _
    , ActiveSheet.Range("$G$1"), ActiveSheet.Range("$C$1:$C$11"), False, True _
    , True, False

I am getting a Run-time error '1004' Cannot run the macro ". The macro may not be available in this workbook or all macros may be disabled.

Solved!

Literally just unchecked and rechecked the analysis tool pack in Excel Add-in's and it worked fine. The world works in mysterious ways I guess.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM