+ Reply to Thread
Results 1 to 5 of 5

Appearance:=xlScreen, Format:=xlBitmap, Residual Borders in Word Doc

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Appearance:=xlScreen, Format:=xlBitmap, Residual Borders in Word Doc

    Good Morning Excel Forum,

    I'm having a little issue with taking a xlBitmap screenshot image and placing it in a Word document. I'm able to take the screenshot bitmap image and paste it into a Word doc, but the image has these borders on it. The borders appear even if I change the surrounding cell fills to white w/ white borders. Below is the code:

        ActiveSheet.Range(Cells(6, 17), Cells(64, 23)).CopyPicture appearance:=xlScreen, Format:=xlBitmap
        With objWdApp.Selection.PageSetup
            .TopMargin = objWdApp.InchesToPoints(0.5)
            .BottomMargin = objWdApp.InchesToPoints(0.5)
        End With
        objWdDoc.ActiveWindow.Selection.Paste
        i = objWdApp.ActiveDocument.InlineShapes.Count
        Set oShape = objWdApp.ActiveDocument.InlineShapes(i)
            With oShape
                .LockAspectRatio = msoTrue
                .ScaleHeight = 75
                .ScaleWidth = 75
            End With
        Set oShape = Nothing
    I am choosing this method, because it prevents the exported table/image from being modified. Are there any techniques or methods that I can use to prevent these residual borders to appear?

    Thanks Everyone,
    Bob1980

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Appearance:=xlScreen, Format:=xlBitmap, Residual Borders in Word Doc

    You may try to replace Format:=xlBitmap with Format:=xlPicture

  3. #3
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Appearance:=xlScreen, Format:=xlBitmap, Residual Borders in Word Doc

    Oh, Excel Forum isn't letting me give "reputation" points, because I have to spread more of it around. But, your help was very valuable. Thanks again!

  4. #4
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: Appearance:=xlScreen, Format:=xlBitmap, Residual Borders in Word Doc

    It worked...and I feel like an idiot. lol

    Thanks a bunch Izandol

    Bob1980

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Appearance:=xlScreen, Format:=xlBitmap, Residual Borders in Word Doc

    You are welcome - do not bother about the points.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 01-03-2013, 06:03 AM
  2. Mail merge to word- Date appearance problems-
    By kalyanaasuri in forum Excel General
    Replies: 2
    Last Post: 09-18-2012, 09:02 AM
  3. word appearance and totalling
    By tapley in forum Excel General
    Replies: 1
    Last Post: 05-23-2006, 04:35 AM
  4. [SOLVED] How to format date as text without changing appearance?
    By joeu2004@hotmail.com in forum Excel General
    Replies: 4
    Last Post: 05-18-2005, 05:06 AM
  5. number formats that allow you to format the appearance of negativ.
    By jassmon in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-15-2005, 06:07 AM

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