Solved

About handle...vb 6

Posted on 2004-09-08
1
187 Views
Last Modified: 2012-05-05
I will be opening some excel files and close one or few off and on from a vb 6 form.  Could handl HWND be utilized to do this?

- Store file names and its HWND value in a temp table (There might be number of file open at the same time).
- Later on, select file you whish to close it, the code is expected to use HWND value for the selected file to close, from a temp table, to close the file.

I don't have a good grasp of HWND.  Is it something that could be used this way?

Thanks,
0
Comment
Question by:Mike Eghtebas
[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
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 250 total points
ID: 12010518
Why would you want to?  You can open all workbooks in a single Excel application object.  That means you already know the name of the object containing the workbooks.  Workbook objects don't have an HWND property only the Excel application does and you already know its name.  I don't see that there's any value in this.  Even if you were going to have multiple Excel application objects, which I also don't see any real value in, it'd be far easier to use a collection object to hold them all.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 - Compare and highlight cell not the same 3 62
SLMGR Switches Are Not Working On KMS Host 3 170
transition to visual .net from vb6 5 80
Macro problems with Excel file 6 52
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

732 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