Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Call Excel function from Delphi?

Posted on 2007-11-20
2
Medium Priority
?
1,521 Views
Last Modified: 2012-06-27
I'm successfully using OLE Automation to call Excel.

However, I haven't been able to figure the syntax (if there is any) for calling a VBA function and getting the result.



fxlApp.Run( ''Workbook.xls'!Macro');  of course will run macro.

Is there similar syntax to call a user-written VBA string function, that could be assigned to a Delphi string.

Tom
0
Comment
Question by:tfield98
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 1600 total points
ID: 20326225
this page is somewhat old, but you might find something useful here: http://www.djpate.freeserve.co.uk/AutoExcl.htm
0
 

Author Closing Comment

by:tfield98
ID: 31410207
Debra's page is always good. I'd forgotten about it. Thanks!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question