+ Reply to Thread
Results 1 to 3 of 3

Need Change In Macro To Open Blank Word Doc

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Need Change In Macro To Open Blank Word Doc

    The following code opens Word correctly, but has too many tool bars open.
    I only want the tool bars to be opened, just like when you click on the Word Icon at the bottom of the screen.

    I do not want the following 3 tool bars to open . . . Drawing, Reviewing & Microsoft Office Live Add-In.

    Sub NewWordWithBlankDocument()
    Dim wdNewBlankDocument
    Dim oWordApp As Object
      Set oWordApp = CreateObject("Word.Application")
      oWordApp.Visible = True
      oWordApp.documents.Add DocumentType:=wdNewBlankDocument
    End Sub
    Sorry that I don't remember who helped me with the original code, but thanks to that person anyways. It was some months back.

    I'm using Windows XP and Word 2002
    Last edited by Launchnet; 07-20-2009 at 01:04 AM.
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: Need Change In Macro To Open Blank Word Doc

    Bounce - No replys yet

  3. #3
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Need Change In Macro To Open Blank Word Doc

    There is nothing in this macro that makes those tool bars visible. Tool bars are sticky. Once they are on, they stay on until you turn them off.

    Right click on the menu bar at the top, and then deselect the toolbars you don't want to see. That should fix it.

    If it doesn't solve the problem, I suggest you do the following (I don't have office 2003 so I can't do it for you).

    Record a new macro in word.
    While recording, turn off the tool bars you don't want.
    Stop recording the macro
    open the macro in edit mode, and copy the lines of code that make the tool bars not visible.
    add these lines of code into the code you posted above.

    Matt

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1