Consulting

Results 1 to 4 of 4

Thread: Format Shape menu appears after a printpreview.

  1. #1
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location

    Format Shape menu appears after a printpreview.

    Hi all.

    Also posted in MrExcel here: https://www.mrexcel.com/forum/excel-...t-preview.html

    When I run a macro with printpreview everything looks ok until I return to the worksheet and find that the Format Shape menu has appeared on the right hand side.

    Any ideas?
    Semper in excretia sumus; solum profundum variat.

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Works fine for me.
    Sheet1.PrintPreview False
    You must have something else going on. You can attach a file that duplicates the problem if you like. Click the Go Advanced button in lower right of reply and then the Manage Attachments hyperlink below the reply box, Choose File, browse and Upload.

  3. #3
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Thanks for reply. I was just about to post that it has stopped happening!

    The only changes I've made to the workbook is added a few more shapes... And it's gone!
    Semper in excretia sumus; solum profundum variat.

  4. #4
    VBAX Newbie
    Joined
    Nov 2022
    Posts
    1
    Location

    Finally found a solution for my issue with print preview and the format command bar

    I know that this is a super old post, but there isn't much out there on this topic even now. I used the following and it works every time for me.

    Application.CommandBars("FormatObject").Visible = False
    I just put that directly after the print preview. Hope that helps someone.

Posting Permissions

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