LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default html help and custom msgbox

This is about displaying HTML help files from a custom made Msgbox
because excel's Msgbox function evidently won't show the Contents/
Index/Search tabs in the HTML help window (Excel2003 windows XP).

I have downloaded http://www.excelguru.ca/ExcelFiles/HTMLHelp.zip
This indeed provides a very good re-enactment of excel's auto-sizing
Msgbox, but I made the following changes to get it to work a little
bit better.

I found that the Escape key won't cancel the custom message box. I
fixed this by putting in the following line:
.Cancel = True
right after each occurrence of
.Caption = "Cancel"
Also, to get the userform to work equally well with either a chm or
hlp type of file I changed the following line:
HTMLHelpShowContents 0, strHelpPath, &H1, 0
to:
If InStr(strHelpPath, ".chm") 0 Then HTMLHelpShowContents
0,strHelpPath, &H1, 0
because otherwise an HLP file is first displayed momentarily at a
requested contextid, but then switches to the contents topic.

One other note - clicking on the X button in the upper right corner of
the userform closes the form, but triggers an Ok instead of a Cancel.
I haven't fixed that yet.

I did all this in Excel 2003. I haven't tried it yet in Excel 2007.
 
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
Custom MsgBox David A. Excel Worksheet Functions 1 July 13th 07 09:40 PM
Custom msgbox help needed!!! zz Excel Programming 7 December 10th 06 12:16 AM
Custom Msgbox? Stefi Excel Programming 4 July 31st 06 10:12 AM
How Do I Get Custom Captions For MsgBox Buttons Minitman[_4_] Excel Programming 6 January 20th 06 04:04 AM
Custom MsgBox using values from 2 different cells Todd Huttenstine[_3_] Excel Programming 3 November 27th 03 12:49 AM


All times are GMT +1. The time now is 09:19 AM.

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"