Solved

Call Excel function from Delphi?

Posted on 2007-11-20
2
1,482 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
2 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 400 total points
Comment Utility
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
Comment Utility
Debra's page is always good. I'd forgotten about it. Thanks!!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now