Results 1 to 5 of 5

Thread: [RESOLVED] How to pop up find box in Word with VB code?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    9

    Resolved [RESOLVED] How to pop up find box in Word with VB code?

    How can I make pop up the find box avalaible manually through Edit / Find... under Word 2003 and stay there for further manual input? Is there some special command in With Selection.Find etc.?

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: How to pop up find box in Word with VB code?

    try like
    Code:
    Application.Dialogs(wdDialogEditFind).Show
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    9

    Re: How to pop up find box in Word with VB code?

    Thanks a lot Pete, this is what I was looking for...

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    9

    Re: How to pop up find box in Word with VB code?

    Marked thread as resolved too early... There is still a slight problem: how can I end the application with the find box remaining there. I need to edit the text while the box is open. This cannot be done if the makro is still running. So after poping up, the makro should end. Sorry I am not a programmer. I want to create an index in a large document, which requires endless recurring tasks. This is why I try to program a makro, which reduces mouse clicks about ten times...

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [RESOLVED] How to pop up find box in Word with VB code?

    afaik you can not do this, no other code will run until the dialog is closed
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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