Solved

Excel from Delphi

Posted on 1998-02-08
1
138 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 20 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

16 Experts available now in Live!

Get 1:1 Help Now