PC Review


Reply
Thread Tools Rate Thread

code instead of functions

 
 
pls123
Guest
Posts: n/a
 
      22nd Sep 2008
hi all !!
can anyone suggest how can i write this for being executed as code ?? and
not applying in cells the function?? ty everybody

aWS.Range("R2").Value = "=SUM(L82:L87)"
aWS.Range("S2").Value = "=COUNT(L82:L87)"
aWS.Range("T2").Value = "=R2/S2"
 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      22nd Sep 2008
aWS.Range("R2").Value = WorksheetFunction.Sum(Range("L82:L87"))
aWS.Range("S2").Value = WorksheetFunction.Count(Range("L82:L87"))
aWS.Range("T2").Value = Range("R2").Value / Range("S2").Value

Regards,
Stefi

„pls123” ezt *rta:

> hi all !!
> can anyone suggest how can i write this for being executed as code ?? and
> not applying in cells the function?? ty everybody
>
> aWS.Range("R2").Value = "=SUM(L82:L87)"
> aWS.Range("S2").Value = "=COUNT(L82:L87)"
> aWS.Range("T2").Value = "=R2/S2"

 
Reply With Quote
 
pls123
Guest
Posts: n/a
 
      22nd Sep 2008
hi stefi tyvm for your help

"Stefi" wrote:

> aWS.Range("R2").Value = WorksheetFunction.Sum(Range("L82:L87"))
> aWS.Range("S2").Value = WorksheetFunction.Count(Range("L82:L87"))
> aWS.Range("T2").Value = Range("R2").Value / Range("S2").Value
>
> Regards,
> Stefi
>
> „pls123” ezt *rta:
>
> > hi all !!
> > can anyone suggest how can i write this for being executed as code ?? and
> > not applying in cells the function?? ty everybody
> >
> > aWS.Range("R2").Value = "=SUM(L82:L87)"
> > aWS.Range("S2").Value = "=COUNT(L82:L87)"
> > aWS.Range("T2").Value = "=R2/S2"

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      22nd Sep 2008
You are welcome! Thanks for the feedback!
Stefi

„Stefi” ezt *rta:

> aWS.Range("R2").Value = WorksheetFunction.Sum(Range("L82:L87"))
> aWS.Range("S2").Value = WorksheetFunction.Count(Range("L82:L87"))
> aWS.Range("T2").Value = Range("R2").Value / Range("S2").Value
>
> Regards,
> Stefi
>
> „pls123” ezt *rta:
>
> > hi all !!
> > can anyone suggest how can i write this for being executed as code ?? and
> > not applying in cells the function?? ty everybody
> >
> > aWS.Range("R2").Value = "=SUM(L82:L87)"
> > aWS.Range("S2").Value = "=COUNT(L82:L87)"
> > aWS.Range("T2").Value = "=R2/S2"

 
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
How to convert cell formula functions to code functions Adnan Microsoft Excel Misc 1 1st Oct 2008 08:30 PM
Code Behind and functions Gary Microsoft ASP .NET 8 26th Jan 2007 01:11 PM
Using Functions in VBA code =?Utf-8?B?Q2hyaXMgR29yaGFt?= Microsoft Excel Programming 2 15th Nov 2005 12:05 PM
not sure what functions/code to use? s&d Microsoft Excel Programming 6 8th Jul 2005 01:28 AM
How to call code in aspx webform from functions defined in code behind modules CW Microsoft ASP .NET 3 2nd May 2004 03:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 PM.