?
Solved

Excel from Delphi

Posted on 1998-02-08
1
Medium Priority
?
153 Views
Last Modified: 2012-05-04
I'm using the OLEauto in one of my Delphi applications and have no problems in CreateOLEObject('Excel.Application'), but I want to open an Excel XLS file and place the content of Edit1.Text in cell B4. How do I do?
0
Comment
Question by:rainbowsoftware
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 40 total points
ID: 1358724
Try this. I didn't check it:
with CreateOLEObject('Excel.Application') do
begin
  Workbooks.Open('C:\somepath\something.xls');
  Range('B4').FormulaR1C1:=Edit1.Text;
end;
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

830 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