Solved

Open excel documents

Posted on 2001-06-10
5
268 Views
Last Modified: 2013-11-20
Hi!
Is there any way of opening a excel file? Does any know how you use ms excels dll files.
0
Comment
Question by:swingfly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:nrajan
ID: 6173980
Using Microsoft DDE (Dynamic Data Exchange) you can porgramatically do almost everything that Excel does with its files.
0
 
LVL 2

Accepted Solution

by:
MadYugoslav earned 50 total points
ID: 6176087
First question:
To open Excell (or any registered file type) You can use ShellExecute(HWND hParent, "open", PathName, NULL, NULL, SW_SHOWNORMAL);

Second question:
How to use Excell dll files ?
I don't know what You mean by that. You can use (as nrajan post) DDE commands for modify excell document.
0
 

Author Comment

by:swingfly
ID: 6177631
Hi.
Where can you get more documentation about this ShellExecute function?.
I want to open a excel file, and then pop values from a specific COL and ROW.

Like :
..
ExcelObj eobj = ShellExecute(XXX);
int x = eobj.getValueAt(row, col, type);
..

/Henrik
0
 
LVL 2

Expert Comment

by:MadYugoslav
ID: 6180071
This is previously asked question that I already answer:

What are possible DDE commands for WinWord ?
Question is what are possible pairs of Topic-Item !
Possible Topics are System and filenames of all open Documents:
- System
- [FileName 1]
- [FileName 2]
- ...
- [FileName N]
Possible Items are:
- all of Word Basic functions
 (see: [Microsoft Word Visual Basic Help] [Command Reference] for list)
- Visual Basic functions that have equivalent in WordBasic commands
 (see: [Microsoft Word Visual Basic Help]
 [Visual Basic Equivalents for WordBasic Commands] for list).

This is the same thoing with Excell.
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9484596
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by : MadYugoslav

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 103
isEverywhere  challenge 19 91
FizzBuzz challenge 9 87
how to split multiple lines delimiter : 8 132
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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