Consulting

Results 1 to 4 of 4

Thread: formname.PrintForm disables msgbox

  1. #1
    VBAX Newbie
    Joined
    Apr 2008
    Posts
    3
    Location

    formname.PrintForm disables msgbox

    Hi,

    I've come across a problem in Excel '97 vba where the following line of code disables message boxes that I've embedded in the code.

    formname.PrintForm

    When I comment it out, there's no problem. I've tried the same process on a colleague's machine with Excel 2003 and everything works.

    Can anyone please tell me if there's a patch that resolves this issue in '97, or if there's a line of code that would enable the message boxes?

    Application.DisplayAlerts = True has been tried and failed.


    Many thanks

    ief

  2. #2
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    Does me.Printform cause the same issue? What actually happens when the msgbox tried to execute? Can you reproduce the error on other machines with 97?
    Cordially,
    Aaron



    Keep Our Board Clean!
    • Please Mark your thread "Solved" if you get an acceptable response (under thread tools).
    • Enclose your code in VBA tags then it will be formatted as per the VBIDE to improve readability.

  3. #3
    VBAX Newbie
    Joined
    Apr 2008
    Posts
    3
    Location
    Hi Aaron,

    Thanks for your response. me.Printform does cause the same issue. Tried this on a number of machines with 97, and had the same problem. It's beginning to look like an Excel glitch....

    The code continues to run following the print. The first message box flashes up and closes down in a instant without user intervention, and no further message boxes appear until Excel is closed and re-opened.


    Thanks again


    ief

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can you post the code that does this?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •