+ Reply to Thread
Results 1 to 4 of 4

Paste as image code not working on newer Excel versions

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    24

    Paste as image code not working on newer Excel versions

    I had the code below running great on Excel 2010 however for some reason it won´t work properly on any of the newer versions. I have a few worksheets that together generate a report with a barcode, which then are saved as pdf (the function below the code). As the barcodes represent a kind of font, not installed on most computers, I need to paste it as an image before saving. I can see the macro effectively generating and pasting the barcode as an image on the last sheet, however when I open the .pdf file, it's just a lot of scrambled letters as if it was pasted as value or something.

    Bottom line: are there any changes on Excel that may affected the code, maybe when saving it, which stopped it from working as it should?

    Any ideas are appreciated.

    Thanks


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Paste as image code not working on newer Excel versions

    Hi,
    Change this line,
    Please Login or Register  to view this content.
    to this line,
    Please Login or Register  to view this content.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  3. #3
    Registered User
    Join Date
    09-25-2014
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    24

    Re: Paste as image code not working on newer Excel versions

    Thanks Herry but Ive tried that before posting (since I wasnt the one who wrote the original code, it seemed wrong for me too), and it didnt work. The code, as written, works fine on excel 2010 and below, as I said, so the only thing I imagine would be possible is some kind of change on excel pasting or saving functions

  4. #4
    Registered User
    Join Date
    09-25-2014
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    24

    Re: Paste as image code not working on newer Excel versions

    Bumping my old thread, still need to figure out how to change this macro to make it work (paste as image) on newer excel versions

+ 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. Help Getting VC++ COM code to work with newer versions of Excel.
    By MikeShugar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2014, 12:08 PM
  2. Code in ActiveX Image Box is not working
    By mgalterio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2012, 12:58 PM
  3. Migrating macros to newer versions.
    By pscornelison in forum Excel General
    Replies: 3
    Last Post: 11-29-2010, 04:01 PM
  4. automatically convert older XLS versions to newer
    By Esmoreit in forum Excel General
    Replies: 11
    Last Post: 06-03-2009, 08:47 AM
  5. Excel 2000 VBA Compatible with Newer Versions?
    By RockyMtnHi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2007, 07:42 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