Solved

Excel from Delphi

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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