Runtime error 1004 when trying to use histogram from Excel add-in

WaqasTariq

Board Regular
Joined
Jun 26, 2012
Messages
54
Office Version
  1. 365
Hi,
I am trying to make use of the histogram add-in in a macro but it errors out saying "Run-time error '1004':", here is the code.
Code:
Application.Run "ATPVBAEN.XLAM!Histogram", ActiveSheet.Range("B2:B17") _
, ActiveSheet.Range("I1"), ActiveSheet.Range("E1:E24"), False, False _
, False, False

I found a fix for this on MS site, but that too errors out saying the same.
Code:
Application.Run "'Analysis Toolpak - VBA'!Histogram", _
ActiveSheet.Range("B2:B17"), ActiveSheet.Range("I1"), _
, ActiveSheet.Range("E1:E24"), False, False, False, False

I have enabled the Analysis tool pack.

Any help will be more than appreciated!
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,214,833
Messages
6,121,869
Members
449,054
Latest member
juliecooper255

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top