#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default vba programming

im writing a VBA programme where x = 2 in cell A3 and cell B3 = 5

and in cell C3


=IF(B3<=0,"B3 must be integer greater than zero",(A3^B3)/FACT(B3))

can anyone help me write a VBA programmeto ensure that x from cell a3
and n from cell b3 return in cell c3 the value of x raised tot he n
divided by n factorial

where x is 2 and n is 5

many thanks as im struggling on how to do this

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default vba programming

You can start your VBA programming by recording a macro.
Tools/ Macro/ Record new macro.
Then type in your formula to the cell.
Then Tools/ Macro/ Stop recording.

Have you looked at http://www.mvps.org/dmcritchie/excel/getstarted.htm ?
--
David Biddulph

"biker man" wrote in message
ps.com...
im writing a VBA programme where x = 2 in cell A3 and cell B3 = 5

and in cell C3


=IF(B3<=0,"B3 must be integer greater than zero",(A3^B3)/FACT(B3))

can anyone help me write a VBA programmeto ensure that x from cell a3
and n from cell b3 return in cell c3 the value of x raised tot he n
divided by n factorial

where x is 2 and n is 5

many thanks as im struggling on how to do this



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
programming help biker man Excel Discussion (Misc queries) 2 July 22nd 07 11:54 PM
programming help Stan Excel Discussion (Misc queries) 2 April 23rd 07 02:44 PM
CD Programming nelson Excel Discussion (Misc queries) 0 June 4th 06 04:32 PM
programming ernie Excel Discussion (Misc queries) 4 March 13th 06 02:06 PM
Programming help BB Excel Discussion (Misc queries) 3 December 5th 05 01:09 AM


All times are GMT +1. The time now is 10:47 PM.

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

About Us

"It's about Microsoft Excel"