Results 1 to 2 of 2

Thread: Why is this not working?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    509

    Why is this not working?

    I am trying to say, when the user clicks on print preview close, then the whole application closes.

    It keeps saying type mismatch


    VB Code:
    1. If objwddoc.CommandBars("Print Preview").Controls("Close").OnAction = True Then
    2.      Set objwdrange = Nothing
    3.     objwddoc.Close (wdDoNotSaveChanges)
    4.     Set objwddoc = Nothing
    5.     objwdapp.Quit
    6. End If

  2. #2
    Lively Member Bolerophone's Avatar
    Join Date
    Dec 2003
    Location
    Himalayas
    Posts
    123
    Please give some more details. It is very diffcilut to arrive at any conclusion from the question posted above.
    Jobs: "Do u want to sell colored sugar water or change the world?"

    Get Firefox Now!!!
    Mendhak leaving town.

Posting Permissions

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



Click Here to Expand Forum to Full Width