Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default use average in a userform

Hi

How to say
TextBox1.Value = Average("A1:A")
I know this is wrong so how?
thanks
Alvin


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default use average in a userform

Hi Alvin,

Try
TextBox1.value = WorksheetFunction.Average("A1:A10")

HTH
Rick


"alvin Kuiper" wrote in message
...
Hi

How to say
TextBox1.Value = Average("A1:A")
I know this is wrong so how?
thanks
Alvin




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default use average in a userform

Sorry don't work
get a error in the line
alvin


"Rick Hansen" wrote:

Hi Alvin,

Try
TextBox1.value = WorksheetFunction.Average("A1:A10")

HTH
Rick


"alvin Kuiper" wrote in message
...
Hi

How to say
TextBox1.Value = Average("A1:A")
I know this is wrong so how?
thanks
Alvin





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default use average in a userform

Hi Alvin,

Try:

TextBox1.Value = Application.Average(Range("A1:A10"))


---
Regards,
Norman



"alvin Kuiper" wrote in message
...
Sorry don't work
get a error in the line
alvin


"Rick Hansen" wrote:

Hi Alvin,

Try
TextBox1.value = WorksheetFunction.Average("A1:A10")

HTH
Rick


"alvin Kuiper" wrote in message
...
Hi

How to say
TextBox1.Value = Average("A1:A")
I know this is wrong so how?
thanks
Alvin







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default use average in a userform

Thanks
its working

Alvin


"Norman Jones" wrote:

Hi Alvin,

Try:

TextBox1.Value = Application.Average(Range("A1:A10"))


---
Regards,
Norman



"alvin Kuiper" wrote in message
...
Sorry don't work
get a error in the line
alvin


"Rick Hansen" wrote:

Hi Alvin,

Try
TextBox1.value = WorksheetFunction.Average("A1:A10")

HTH
Rick


"alvin Kuiper" wrote in message
...
Hi

How to say
TextBox1.Value = Average("A1:A")
I know this is wrong so how?
thanks
Alvin








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform to enter values and shown in same userform in list helmekki[_104_] Excel Programming 0 November 19th 05 03:23 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
Activating userform and filling it with data form row where userform is activate Marthijn Beusekom via OfficeKB.com[_2_] Excel Programming 3 May 6th 05 05:44 PM
Access from add_in userform to main template userform.... Ajit Excel Programming 1 November 18th 04 05:15 PM


All times are GMT +1. The time now is 08:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"