Excel VBA Macro: Export Selected Range as Image (Save Range as Picture)

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024

Комментарии • 25

  • @BenjaminTVogt
    @BenjaminTVogt 10 месяцев назад +3

    Thanks for the post! One modification I would suggest… Instead of “xlScreen, Format:xlPicture” I would do “Appearance:=xlScreen, Format:=xlBitmap”. The original code created an image output with a weird pivot chart on top of it for me. The modification corrected this issue.

  • @LLF123
    @LLF123 Год назад +1

    This came in just in time for a project I was working on, exactly what I was looking for! Thank you!

  • @turkaykoc8587
    @turkaykoc8587 6 месяцев назад

    Thank you for the very good explanation.

  • @Fanguard-199
    @Fanguard-199 4 месяца назад

    Great video. Many thanks

  • @fk5774
    @fk5774 Год назад +1

    Thank you. The exported image came out a bit stretched wide with this code.
    I asked chatgpt, it gave me this line:
    Set cht = ws.ChartObjects.Add(0, 0, myRange.Width, myRange.Height)
    which exported the image in the correct proportions. Why I don't know.

  • @AS-sk3lb
    @AS-sk3lb 9 месяцев назад

    Really appreciated brother for this amazing vid.

    • @greggowaffles
      @greggowaffles  9 месяцев назад

      😎😎

    • @jonelatendido9836
      @jonelatendido9836 7 месяцев назад

      ​@@greggowaffles could you make fastest vba code to merge selected .pdf files in a folder?

  • @samyboyster
    @samyboyster Месяц назад

    Hey Greg,
    Amazing video, thanks a lot. I have a question. Is that possible picture save that picture on network. I have to try but than I have an error message that the path not existed

  • @user-il1bi2pt3g
    @user-il1bi2pt3g 7 месяцев назад

    Thanks, it solved my issue

  • @simongoh3432
    @simongoh3432 Год назад

    Hi Greg, first off, great videos please continue to put them out the world needs more genuine people who wants to help others out. Subscribed!
    I need help on a project to unprotect a list of workbooks from a folder all at once using a macro. Can't seem to find any guides on that. Could you help make a guide on that?
    Thank you in advance!
    Simon

  • @m3tallicat
    @m3tallicat 5 месяцев назад

    Hey Gregg. Fantastic video. I think some of the hiccups people are encountering are from them not noticing the discrepancy between the video and the code you pasted. In the video, you show Height:= myHeight. But in the code in the description it says Height:=100.
    That's probably why some folks said it was stretched out for them. Easy fix, just wanted to let you know. Thanks for this amazing tutorial. Super helpful!

    • @greggowaffles
      @greggowaffles  5 месяцев назад +1

      I really appreciate that! Thanks a lot!!

  • @suthamwintachai6559
    @suthamwintachai6559 4 месяца назад

    thank you

  • @MuhammadFAH33M
    @MuhammadFAH33M 3 месяца назад

    Hi Nice Video 👍
    Question ❓
    I want the code to Auto pick file name from a Cell Value
    Can you please tell me how to do it.
    Also please update the VBA code & share it with people feedback given in comments
    Thanks 🙏
    I've Subscribed to your Channel ❤

  • @dannycheung2114
    @dannycheung2114 9 месяцев назад

    super

  • @Kn2ght
    @Kn2ght 7 месяцев назад

    best tut ever, just 1 question. how can i export selected range as PDF and how can i name file based on cell value(name) ?

  • @juliebinu3808
    @juliebinu3808 6 месяцев назад

    Hi Sir, thank you for your away some video.. this tutorial help me so much!. ca do another video, to send this picture through WhatsApp numbers

  • @yohanestiaras9233
    @yohanestiaras9233 8 месяцев назад

    Hi Greg, how about the code about save selected range with "many worksheet and many range" as picture

  • @bradosborne9299
    @bradosborne9299 7 месяцев назад

    This is what I am looking for but can't quite make it happen. I can see the pic get copied to my sheet and then deleted, but it's not in the folder that I set the path to. I've tried to my desktop, temp, to my OneDrive folders...

    • @bradosborne9299
      @bradosborne9299 7 месяцев назад

      okay, works on Windows, but I can't get it to complete on MacOS
      .Export fileName:=myPath & myPic, Filtername:="png" [This line brings up a permissions denied error].
      I switched myPath to match my MacOS folder location myPath = "/users/username/desktop/filename"
      I have full rights to my folder, I even created another to ensure it was not on the iCloud

  • @gegemyworld5603
    @gegemyworld5603 Год назад

    Hi Sir, thank you for your awsome video.. this tutorial help me so much! i was looking for this tutorial. Anyway, may i know your social media or your email? i have a lil bit problem script VBA, maybe you can teach me a lil bit about my problem. Thank you in advance, Sir.