Solved

The Registry, DDE & LinkTopic

Posted on 1998-07-08
2
364 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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