Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel formula in macro

Hello,
Does anyone know how to preform an excel function from within a excel
macro. Thx



------------------------------------------------
Message posted from http://www.ExcelTip.com/

-- View and post Excel related usenet messages directly from http://www.ExcelTip.com/forum
-- Hundreds of free MS Excel tips, tricks and solutions at http://www.ExcelTip.com/
------------------------------------------------
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel formula in macro

It depends on exactly what you mean. You can call most Excel worksheet
functions with code like

Result = Application.WorksheetFunction.FunctionName(...)

Your post isn't clear about what you actually want to do.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"johndoe" wrote in message
...
Hello,
Does anyone know how to preform an excel function from within a excel
macro. Thx



------------------------------------------------
Message posted from
http://www.ExcelTip.com/

-- View and post Excel related usenet messages directly from

http://www.ExcelTip.com/forum
-- Hundreds of free MS Excel tips, tricks and solutions at

http://www.ExcelTip.com/
------------------------------------------------



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Excel formula in macro

I do
application.vlookup(range("a1"),range("a2:x6"),2,0 )

"johndoe" wrote in message
...
Hello,
Does anyone know how to preform an excel function from within a excel
macro. Thx



------------------------------------------------
Message posted from http://www.ExcelTip.com/

-- View and post Excel related usenet messages directly from

http://www.ExcelTip.com/forum
-- Hundreds of free MS Excel tips, tricks and solutions at

http://www.ExcelTip.com/
------------------------------------------------



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Excel formula in macro

The easiest is application.worksheetfunction. and after you type the
dot, all the functions will appear.
Also, typing vba. will drop down the list of vba functions....that is vba
dot
"Don Guillett" wrote in message
...
I do
application.vlookup(range("a1"),range("a2:x6"),2,0 )

"johndoe" wrote in message
...
Hello,
Does anyone know how to preform an excel function from within a excel
macro. Thx



------------------------------------------------
Message posted from http://www.ExcelTip.com/

-- View and post Excel related usenet messages directly from

http://www.ExcelTip.com/forum
-- Hundreds of free MS Excel tips, tricks and solutions at

http://www.ExcelTip.com/
------------------------------------------------





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
Excel Macro or Formula Question carl Excel Worksheet Functions 1 October 22nd 11 02:55 PM
Excel 2000 Formula or Macro craigtab Excel Discussion (Misc queries) 7 June 9th 08 03:30 PM
Excel formula / Macro ? robert morris Excel Discussion (Misc queries) 2 August 18th 07 07:12 AM
Excel formula - should this be a macro? Dos Equis Excel Worksheet Functions 0 October 9th 06 04:39 PM
How do I set up a formula with a changing range in an excel macro cinvic Excel Discussion (Misc queries) 2 April 4th 06 10:39 PM


All times are GMT +1. The time now is 07:24 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"