Solved

About handle...vb 6

Posted on 2004-09-08
1
192 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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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