Excel VBA to Export Range as Image - VBA Coding to Export Image

Поделиться
HTML-код
  • Опубликовано: 5 дек 2020
  • This Excel VBA Macro examples VBA Code to export excel range or shape as image. We can automate task to save as Image or save as a png file.

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

  • @diversityiscool
    @diversityiscool 2 года назад

    Thanks for this. Haven't tried it but looks promising.
    Will try it out soon to see if it will improve our efficiency at the office.

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

    Thanks a lot for this code this what I wanted exactly

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

    excelente aporte, me sirvio mucho

  • @jamieharper5665
    @jamieharper5665 2 года назад +1

    Hey :D This was super helpful and I added a bit of my own code in there too to make the desktop location dynamic! I am however having an issue with the exported image being squashed ... Would I be able to contact you to see what I'm doing wrong?

  • @usommer64
    @usommer64 3 года назад +1

    Thanks, this worked fine!

  • @steveparrott9762
    @steveparrott9762 3 года назад +2

    Great video. How do you remove the border from the chart?

  • @solana-king
    @solana-king 2 года назад +1

    I am trying to print 1000 random RGB colors to each be saved separately as different files. Any ideas on how best to do this using this save feature?

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

    Thx for sharing this
    Although i would say that reading a code without, for most of the lines, giving detailed info as to why using this method with this value, doesn't bring much added value

  • @ThuyTrinh-hi8od
    @ThuyTrinh-hi8od 3 года назад +4

    Thank you for the video. Please send this code in comment

  • @ExcelMadeEasy444
    @ExcelMadeEasy444 3 года назад +1

    Good Explained.
    Sir Make video on export range as txt file.

    • @ExcelDestination
      @ExcelDestination  3 года назад

      Thanks for your comment. I have already created the tutorial to transfer data from excel to notepad. Please check the tutorial at below given link :
      ruclips.net/video/yl7GKPXI9to/видео.html

  • @123456789munish
    @123456789munish 2 года назад

    Sir can we do the same with table? Table does not have fixed range

  • @k.k.sabariraj6484
    @k.k.sabariraj6484 2 года назад +1

    how to add multiple sheets to convert images ( in my daily application using 5 sheets data s convert to image by using paint application only)

  • @esbelaindonesia7291
    @esbelaindonesia7291 3 года назад +5

    HI, I have a problem with longer size range, where the jpg picture is very low resolution and very skewed, any tips how to fix it? as if i use picture cut and paste the picture quality is much better.

    • @teguhsampurna1482
      @teguhsampurna1482 2 года назад +2

      you can replace PicTemp.Width to 1280 an height to 720

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

      @@teguhsampurna1482 Awesome! Thank you so much!

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

    Hello, greetings, the macro works but the image is created with low resolution and when it is enlarged, the data is not seen well, how could it be done with vba code to improve the image quality. thank you

  • @ravi100i
    @ravi100i 2 года назад

    Can you please help me to get proper result
    Also i get image streched in landscape mode my image is portrait mode

  • @alexchan2025
    @alexchan2025 3 года назад +1

    thx
    it is very useful
    I have some questions about the picture size and Clarity
    could you help me?

    • @ExcelDestination
      @ExcelDestination  3 года назад

      you can share your excel vba requirement at exceldestination@gmail.com

    • @alexchan2025
      @alexchan2025 3 года назад

      @@ExcelDestination yes,i will send you later,thx a lot

  • @Dragz672
    @Dragz672 3 года назад +2

    Thank you for the video. Unfortunately when I do this, the picture produced is very low quality. Can you help me with this

    • @ExcelDestination
      @ExcelDestination  3 года назад

      not sure.

    • @leoazarro3984
      @leoazarro3984 3 года назад +5

      In the line
      With ch_temp.Parent
      .Width = PicTemp.Width
      .Height = PicTemp.Height
      End With
      Set the values, e.g.
      With ch_temp.Parent
      .Width = 560
      .Height = 500
      End With

    • @Dragz672
      @Dragz672 3 года назад

      @@leoazarro3984 thank you! I will try that

    • @leoazarro3984
      @leoazarro3984 3 года назад +1

      @@Dragz672 you're welcome, friend

  • @theanea_Gaming_official
    @theanea_Gaming_official 2 года назад

    hello sir when i capture pic the quantity not good please help tell me too how i do?

  • @aistensilva
    @aistensilva 3 года назад +1

    Thanks man, this work for some forms too ?

  • @chiranjiviniroula863
    @chiranjiviniroula863 3 года назад +1

    How to save this file trough cell text

  • @vikrambohra1985
    @vikrambohra1985 3 года назад +1

    sir am getting a error in this line "pic_rng.CopyPicture Apperance:=xlScreen, Format:=xlPicture"... a pop up msg showing "compile error named arugument not found"

    • @ExcelDestination
      @ExcelDestination  3 года назад

      without looking at the code, I can not say anything, but, I hope that there is some typo mistake. If you want to use my file, send me email at exceldestination@gmail.com I will send you the original file, you can modify that and use that........thanks for watching and subscribing my channel.

  • @vikrambohra1985
    @vikrambohra1985 3 года назад

    Sorry it was my typing mistake as u said solved it ... TQ

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

    Can you send the project file?

  • @mohamedrajick9050
    @mohamedrajick9050 10 месяцев назад

    How to save pic using cell value as file name? Kindly help me out

  • @jamieharper5665
    @jamieharper5665 2 года назад +1

    Also your website doesn't work, I'd be happy to set one up for free for you as this is a good channel :)

  • @karmusinghsiddhu190
    @karmusinghsiddhu190 3 года назад +2

    sir can pls help me to correct it 'Option Explicit
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim rCell As Range, MyRange As Range
    Dim counter As Long, Destrow As Long
    Dim wsData As Worksheet, wslist As Worksheet
    Dim lastrow As Long
    On Error Resume Next
    Application.ScreenUpdating = True
    Range("M10").Formula = "=(IF(AND(D5="",E5="",F5="")),"",(G4+D5-E5-F5)))"
    'Selection.AutoFill Destination:=Range("M10:M50")
    'Target.Offset(1).EntireRow.Insert
    'Target.EntireRow.Copy Target.Offset(1).EntireRow
    'Range("F50").AutoFill Destination:=Range(balance D4+D50, E5+E50,D50+E50)
    Application.ScreenUpdating = True
    End Sub

    • @ExcelDestination
      @ExcelDestination  3 года назад

      please send me email at exceldestination@gmail.com I will provide you the original file. You can modify that and use that.

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

    How to save image name from cell

  • @udayashokkumarnunna3124
    @udayashokkumarnunna3124 3 года назад +3

    Please send this code in comment

  • @shahzadisrani2616
    @shahzadisrani2616 3 года назад

    Error "Set pic_rng = Worksheets("Sheet8").Range("A1:J43")"
    Dear Sir,
    it is very magically file but if you can add some coding more in it so it is very favorable file for everyone.
    Like when we create jpeg or png file that time it will save by allocated cell where we put file name then it automatically open after saving.
    Thanks,
    Waiting for your reply
    Also sent email

    • @ExcelDestination
      @ExcelDestination  3 года назад

      sure!!!

    • @shahzadisrani2616
      @shahzadisrani2616 3 года назад

      @@ExcelDestination Waiting Sir

    • @shahzadisrani2616
      @shahzadisrani2616 3 года назад

      Sir now it's worked great but want to ask 1 thing more if I added file name on cell of file suppose on Cell K1 (ABC File) & Location on Cell K2 so kindly suggest when I click button It automatically saved in k2 location & saved name in K1 & then it open.
      Thanks

  • @ravi100i
    @ravi100i 2 года назад

    Image is too much distorted and no quality