PC Review


Reply
Thread Tools Rate Thread

Data Analysis Tool

 
 
Cesar
Guest
Posts: n/a
 
      23rd Feb 2009
Hello everyone,
I frequently use the Data Analysis Tool, particularly the Histograms, I was
wondering if there is a way to write a macro that does this for me, I've been
using the macro builder to let the machine built it for me folloiwng all the
steps when I do it manually, Tools->Data Analysis->Histogram, selec my Input
Range, Bin Range and Output Range; but when I run the macro it comes with
this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
stops there, this is the code:

Application.Run "ATPVBAEN.XLA!Histogram",
ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
ActiveSheet.Range("$D$1:$D$21"), False, False _
, False, False _
ActiveWindow.SmallScroll Down:=6

Any help would it be greatly appreciated,
Thanks!
--
Cesar
 
Reply With Quote
 
 
 
 
Shane Devenshire
Guest
Posts: n/a
 
      23rd Feb 2009
Hi,

You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
Analysis ToolPak is not enough.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

> Hello everyone,
> I frequently use the Data Analysis Tool, particularly the Histograms, I was
> wondering if there is a way to write a macro that does this for me, I've been
> using the macro builder to let the machine built it for me folloiwng all the
> steps when I do it manually, Tools->Data Analysis->Histogram, selec my Input
> Range, Bin Range and Output Range; but when I run the macro it comes with
> this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
> stops there, this is the code:
>
> Application.Run "ATPVBAEN.XLA!Histogram",
> ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
> ActiveSheet.Range("$D$1:$D$21"), False, False _
> , False, False _
> ActiveWindow.SmallScroll Down:=6
>
> Any help would it be greatly appreciated,
> Thanks!
> --
> Cesar

 
Reply With Quote
 
Cesar
Guest
Posts: n/a
 
      23rd Feb 2009
Thanks Shane,
I Added the under Add-ins the Analysis ToolPak VBA and created the macro
again, but still not working, the macro still stopping at the same
instruction, the code still the same, it didn't change after adding the
Analysis ToolPak VBA if it had to.
Thanks
--
Cesar


"Shane Devenshire" wrote:

> Hi,
>
> You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
> Analysis ToolPak is not enough.
>
> --
> If this helps, please click the Yes button
>
> Cheers,
> Shane Devenshire
>
>
> "Cesar" wrote:
>
> > Hello everyone,
> > I frequently use the Data Analysis Tool, particularly the Histograms, I was
> > wondering if there is a way to write a macro that does this for me, I've been
> > using the macro builder to let the machine built it for me folloiwng all the
> > steps when I do it manually, Tools->Data Analysis->Histogram, selec my Input
> > Range, Bin Range and Output Range; but when I run the macro it comes with
> > this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
> > stops there, this is the code:
> >
> > Application.Run "ATPVBAEN.XLA!Histogram",
> > ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
> > ActiveSheet.Range("$D$1:$D$21"), False, False _
> > , False, False _
> > ActiveWindow.SmallScroll Down:=6
> >
> > Any help would it be greatly appreciated,
> > Thanks!
> > --
> > Cesar

 
Reply With Quote
 
Cesar
Guest
Posts: n/a
 
      23rd Feb 2009
Shane,
Sorry for the note, but it did work, I just had to close the Excel
application and reopened again and it worked perfect!

Thanks a lot!!
genious!
--
Cesar


"Shane Devenshire" wrote:

> Hi,
>
> You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
> Analysis ToolPak is not enough.
>
> --
> If this helps, please click the Yes button
>
> Cheers,
> Shane Devenshire
>
>
> "Cesar" wrote:
>
> > Hello everyone,
> > I frequently use the Data Analysis Tool, particularly the Histograms, I was
> > wondering if there is a way to write a macro that does this for me, I've been
> > using the macro builder to let the machine built it for me folloiwng all the
> > steps when I do it manually, Tools->Data Analysis->Histogram, selec my Input
> > Range, Bin Range and Output Range; but when I run the macro it comes with
> > this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
> > stops there, this is the code:
> >
> > Application.Run "ATPVBAEN.XLA!Histogram",
> > ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
> > ActiveSheet.Range("$D$1:$D$21"), False, False _
> > , False, False _
> > ActiveWindow.SmallScroll Down:=6
> >
> > Any help would it be greatly appreciated,
> > Thanks!
> > --
> > Cesar

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      23rd Feb 2009
Hi Cesar,

glad to help and thanks for the feedback.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Cesar" wrote:

> Shane,
> Sorry for the note, but it did work, I just had to close the Excel
> application and reopened again and it worked perfect!
>
> Thanks a lot!!
> genious!
> --
> Cesar
>
>
> "Shane Devenshire" wrote:
>
> > Hi,
> >
> > You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
> > Analysis ToolPak is not enough.
> >
> > --
> > If this helps, please click the Yes button
> >
> > Cheers,
> > Shane Devenshire
> >
> >
> > "Cesar" wrote:
> >
> > > Hello everyone,
> > > I frequently use the Data Analysis Tool, particularly the Histograms, I was
> > > wondering if there is a way to write a macro that does this for me, I've been
> > > using the macro builder to let the machine built it for me folloiwng all the
> > > steps when I do it manually, Tools->Data Analysis->Histogram, selec my Input
> > > Range, Bin Range and Output Range; but when I run the macro it comes with
> > > this error "ATPVBAEN.XLA could not be found", debug the macro and yes, it
> > > stops there, this is the code:
> > >
> > > Application.Run "ATPVBAEN.XLA!Histogram",
> > > ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
> > > ActiveSheet.Range("$D$1:$D$21"), False, False _
> > > , False, False _
> > > ActiveWindow.SmallScroll Down:=6
> > >
> > > Any help would it be greatly appreciated,
> > > Thanks!
> > > --
> > > Cesar

 
Reply With Quote
 
Mike Middleton
Guest
Posts: n/a
 
      24th Feb 2009
Cesar -

If you'd like a slightly better histogram, see my free Better Histogram
add-in, available at www.treeplan.com. Its VBA code is not protected, and
you might want to borrow it.

- Mike

http://www.MikeMiddleton.com



"Cesar" <(E-Mail Removed)> wrote in message
news:17A824A1-8D75-41C5-91F9-(E-Mail Removed)...
> Shane,
> Sorry for the note, but it did work, I just had to close the Excel
> application and reopened again and it worked perfect!
>
> Thanks a lot!!
> genious!
> --
> Cesar
>
>
> "Shane Devenshire" wrote:
>
>> Hi,
>>
>> You need to attach the Analysis ToolPak VBA under Tools, Add-ins. The
>> Analysis ToolPak is not enough.
>>
>> --
>> If this helps, please click the Yes button
>>
>> Cheers,
>> Shane Devenshire
>>
>>
>> "Cesar" wrote:
>>
>> > Hello everyone,
>> > I frequently use the Data Analysis Tool, particularly the Histograms, I
>> > was
>> > wondering if there is a way to write a macro that does this for me,
>> > I've been
>> > using the macro builder to let the machine built it for me folloiwng
>> > all the
>> > steps when I do it manually, Tools->Data Analysis->Histogram, selec my
>> > Input
>> > Range, Bin Range and Output Range; but when I run the macro it comes
>> > with
>> > this error "ATPVBAEN.XLA could not be found", debug the macro and yes,
>> > it
>> > stops there, this is the code:
>> >
>> > Application.Run "ATPVBAEN.XLA!Histogram",
>> > ActiveSheet.Range("$A$1:$A$140") _ , ActiveSheet.Range("$F$31"),
>> > ActiveSheet.Range("$D$1:$D$21"), False, False _
>> > , False, False _
>> > ActiveWindow.SmallScroll Down:=6
>> >
>> > Any help would it be greatly appreciated,
>> > Thanks!
>> > --
>> > Cesar



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Q: Automate the Fourier Analysis - Data Analysis Tool pinkpanther Microsoft Excel Discussion 0 14th Jan 2011 04:04 PM
Excel Data analysis add-ins tool kit Amy Microsoft Excel Misc 2 21st Aug 2009 08:28 PM
How can I add data analysis function in tool? =?Utf-8?B?TWljaGlrbw==?= Microsoft Excel Worksheet Functions 1 8th Nov 2005 09:26 AM
Where is data analysis tool? =?Utf-8?B?dGFtb3Ju?= Microsoft Excel Worksheet Functions 4 22nd Sep 2005 11:03 AM
Data Analysis Sampling Tool =?Utf-8?B?dGp0amp0anQ=?= Microsoft Excel Misc 2 24th Apr 2004 05:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 PM.