Solved

The Registry, DDE & LinkTopic

Posted on 1998-07-08
2
357 Views
Last Modified: 2008-02-01
I am using Win'95, VB5, and various versions of Excel.

I have two questions:

1) Where do you look in the Win'95 registry to find out if an application is
   installed on a PC? e.g. Excel so I can get the path for the .exe

2) When I want to DDE to Excel, what is the correct syntax when setting up the LinkTopic
   property when the spreadsheet isn't called sheet1 and is in a different directory?
   
Thanks.
0
Comment
Question by:eggs
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 100 total points
ID: 1465204
eggs,
1. Why registry? you can use findfile to get the the path, either from explorer or in vb.

2. When you are doing DDE, you need to have excel running and the worksheet loaded. so you refers the name of the sheet if it is not called sheet1.

If you have additional questions, let me know.
Regards
Dalin
0
 

Author Comment

by:eggs
ID: 1465205
Thanks for the reply.
Fair enough for 1)
As for 2) I am rewriting this app that was previously written in Visual dbase, where one command initiated the link, found excel wherever it was, and opened the spreadsheet required. The problem is that sometimes the spreadsheet 'overruns' so that another sheet is required which uses totals from the first etc. I'm a little disappointed if this is the only way to solve my problem.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

705 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

18 Experts available now in Live!

Get 1:1 Help Now