View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme Bernard Liengme is offline
external usenet poster
 
Posts: 4,393
Default calling worksheet function from a macro

One generally uses
MyVar=Application.WorksheetFunction. then a drop list pops up showing
which Excel function may be used in VBA
In general, if VBA has an equivalent function, you cannot use the VBA
function (e.g MAX, SUM)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Joe Farruggio" wrote in message
...
Hi
I have written a macro in which i need to call the spreadsheet function
Fact. This gives me an error. Most of the spreadsheet functions are simply
called by using their names but not this one. Anyone have any ideas on how
to do this. By the way using the Fact function in a work sheet does fine.