Word Edit visual basic - get to the Visual Basic Editor without going through a bunch of mouse clicks and menus

Anonymous
2025-01-31T21:15:08+00:00

Hello from Steve

Objective edit visual basic

Is this possible please.

Open using the macro icon in this case Right_Single then change ELLERSLIE to TIMARU

From

.ClearFormatting: .Text = "ELLERSLIE": .Wrap = wdFindStop

To

.ClearFormatting: .Text = "TIMARU": .Wrap = wdFindStop

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Charles Kenyon 168.4K Reputation points Volunteer Moderator
2025-02-01T14:29:36+00:00

Hello from Steve

In word is there a script that will open visual basic.

Hello Steve,

      ShowVisualBasicEditor = True

Will open/show the visual basic editor.

I am unsure why you would want this.

In the user interface, Alt+F11 will do the same thing. (Some computers also need the Fn key.)

Function Keys in Word 97-2024 (365)

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-02-01T18:00:32+00:00

    Hello Charles

    This is what I was after Alt+F11

    I just could not think.

    Thankyou

    All the Best

    Steve ****

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Charles Kenyon 168.4K Reputation points Volunteer Moderator
    2025-02-01T03:04:15+00:00

    Ctrl+H opens the Replace dialog, just .as it does in Word.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-01-31T22:43:50+00:00

    Hello Charles

    Thank you

    When I want to do an edit in visual basic I first use view, Macros and view Macros

    I then select Right_Single and then edit, using Ctl H to bring up the Replace dialog box

    I then type ELLERSLIE in Find What and I then type in TIMARU in the Replace with

    Objective is for VBA to open the replace dialog box.

    To do this I want to use the macro icon in this case Right_Single

    which in turn will open the Right_Single, at this point I need vba to open replace dialog box,

    for me to type ELLESLIE and TIMARU.

    Hopefully this time it is understandable.

    All the Best

    Steve

    Was this answer helpful?

    0 comments No comments
  4. Charles Kenyon 168.4K Reputation points Volunteer Moderator
    2025-01-31T21:23:42+00:00

    Hi Steve,

    I am unsure of your question.

    In the Visual Basic editor, it is possible to use Replace to replace "ELLERSLIE" with "TIMARU"

    Was this answer helpful?

    0 comments No comments