Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

About handle...vb 6

Posted on 2004-09-08
1
Medium Priority
?
202 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 750 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

Independent Software Vendors: 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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 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