Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default close .chm with form

If userforms are windoless controls and don't have a hwnd, how do you
close your .chm help file without being able to pass the .hwd of the
form?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default close .chm with form


"ckoch" wrote in message
ups.com...
If userforms are windoless controls and don't have a hwnd, how do you
close your .chm help file without being able to pass the .hwd of the
form?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default close .chm with form

The hwnd you need to be concerned with is that of the .chm, not the
userform, and then only for use with a the IsWindow API to check the .chm is
still open before using the html help API to close it (AFAIK).

Const HH_CLOSE_ALL = &H12

If IsWindow(previously trapped .chm hwnd) Then
HTMLHelp 0&, vbNullString, HH_CLOSE_ALL, 0&
End If

Regards,
Peter T


"ckoch" wrote in message
ups.com...
If userforms are windoless controls and don't have a hwnd, how do you
close your .chm help file without being able to pass the .hwd of the
form?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Close User Form Gazz_85[_2_] Excel Discussion (Misc queries) 1 July 8th 09 10:38 AM
Close Switchboard Form ca1358 Excel Programming 1 February 6th 06 09:36 PM
Close form instead of hide skuzapo Excel Programming 2 September 26th 05 11:24 PM
Form Close button fran Excel Programming 2 September 16th 03 09:32 PM
Close Form with VBA William C. Smith Excel Programming 3 September 2nd 03 05:28 AM


All times are GMT +1. The time now is 10:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"