Averaging

  • Thread starter Thread starter stephentebaldi
  • Start date Start date
S

stephentebaldi

does vba not recognize the same functions as excel? I checked the vba
help files and it says it will do averaging. If I select a range of
data and then try to average it, it says that the function is not
defined. Can I not average a predefined range. My code below probably
explains it more easily.

Dim Standards As Range
Set Standards = Application.InputBox("Please Select Data for
Positive Standards", Type:=8)
Dim Blanks As Range
Set Blanks = Application.InputBox("Please Select Data for
Blanks", Type:=8)

AveStds = Average(Standards)
AveBlks = Average(Blanks)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top