I am trying to open an instance of Excel 2007 and load some text into a new file's cells (such as a list of something) through my Delphi4 program. I have already tried the ShellExecute and ComObj (variant) methods. ShellExecute works fine on the Windows XP platform, but not on Windows 7. I can open an instance of Excel 2007, but the file will not load. Any recommendations are welcome.....thanks....

ShellExecute is meant to start a process. Although it may be possible to get it to open a file, you will not be able to use it to add data to it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.