People & websites that helped me in 2015 [thank you message]

Share

Facebook
Twitter
LinkedIn

2015 has been the most awesome year since starting Chandoo.org

Thank you so much for making it happen. This year, more than 11 million people visited our site (up 8%), learned something and took first step to become awesome in their work. 2015 has been an amazing journey, thanks to all your visits, listens, purchases, comments, likes and shares.

A big thanks to you, my dear reader, for supporting me and choosing chandoo.org as partner in your journey to awesomeness.

Apart from our readers, there are also countless people, websites, books, companies which helped me have a fantastic year. This message is my way of saying thanks to them.

People who helped me in 2015

Teachers & gurus:

Running a small business focusing on knowledge requires a lot of training, help and mentoring. Thanks to all these wonderful people who motivated me, taught me, inspired me and corrected me in this year.

Excel folks:

Hui, Jon Peltier, Debra Dalgleish, Mike Alexander, Dick Kuslieka, Rob Collie, Bill Jelen, Jordon Goldmeir, Colin Legg, Mike Girvin, Francis Hayes, & David Hager

Forum members:

Hui, Luke, Narayank, Somendra, Deepak, Debraj, Khalid, Nebu, Asheesh and more.

Business & entrepreneurship:

Pat Flynn, MrMoneyMustache, Tim Ferriss and Tropical MBA.

Health & fitness:

My cycling buddies – Hemanth, Srinivas B, Srinivas C, Sandeep, Sridhar V, Sridhar B and more.

Authors & books

It has been a powerful & inspiring journey, thanks to all the books I could read.

Some of the authors & their books that inspired me are,

Note: all the book links are Amazon Affiliate links. That means, if you click and purchase a book thru above links, I will get a few cents from Amazon.

Partners, Affiliates & Supporters

Chandoo.org is able to reach out & help millions of users world wide because it stands on the shoulders of many giants & supporters.

Our partners:

PASS BA & Jen Stirrup:  Thank you so much for inviting me to speak at PASS BA 2015 conference. It was an awesome experience meeting all the Excel legends and PASS BA staff in Santa Clara this April.

Plum Solutions: Thank you Danielle for doing all the ground work to conduct another round of Excel & Power Pivot masterclasses in Australia in 2015. It was a great experience meeting our Australian readers & fans.

EduPristine: Thanks to Pawan, Paramdeep & rest of the staff at EduPristine for partnering with Chandoo.org in running Financial Modeling classes.

Our Affiliates:

This year was great for many of our affiliates too. Thanks to their support, we had more customers and they had more revenues. Some of our most prominent affiliates are,

Dashboard Spy, Francis, Daniel Ferry, Debra Dalgleish, Philip, Ken Puls, Oscar, Jimmy Pena, Victor Chan, Alan Murray, Brad Edgar and many more.

Customers & Readers

In 2015, more than 5,300 people purchased courses, templates, ebooks or products from Chandoo.org. More than 120,000 people are now members of our newsletter / RSS feed. More than 12,000 people regularly tune in to Chandoo.org podcast too. Many more people discover and join our little community every day. Thank you so much for inviting me to your life & letting me help you. My sincere & heart-felt thanks to each and every one of you.

Many thanks to Texas Mutual, University of Tasmania (Australia), Environmental Protection Agency – Ohio etc. for purchasing bulk licenses of our products.

I am also thankful to our Excel Forum members, who continue to share their knowledge & skills selflessly.

Special thanks also to,

  • Delegates of my Advanced Excel & Power Pivot Masterclasses in Sydney, Melbourne & Brisbane in Australia.
  • Delegates of the PASS BA conference in Santa Clara, USA
  • People who attended the meetups in Sydney, Melbourne and Brisbane. Thanks for spending a lovely evening with me talking about Excel 🙂
  • Leonie, Sunil, Habiba, Matt, Susan, Kurt and Danielle for your love, hospitality and warmth during my Australia visit this summer.
  • Rickard from Corality and Johann from ModelOff for taking a few minutes out of their schedules to meet me and share a drink.
  • Dan Fylstra for sharing his views and insights about Excel in a podcast interview.
  • Staff and editors at Apress who helped Jordan & me with our book – Dashboards for Excel.
  • Jeff Weir for all his wisdom, time & advice.
  • All Excel MVPs and bloggers who attended the PASS BA conference and made it a memorable experience for me. (here is more)
  • All our podcast listeners
  • Everyone who bought a copy of The VLOOKUP Book or Dashboards for Excel.
  • Mixergy, PC Magazine, InvestinTech for all press coverage and love.

Our staff

Chandoo.org staff are the silent soldiers helping me achieve our mission – “to make you awesome in Excel”. I am deeply thankful to their efforts & work ethic.

  • Ravindra: for handling student enrollments, customer support & email work
  • Joya: for creating podcast transcripts
  • Pothi: for maintaining Chandoo.org webservers and helping our site run smoothly
  • Narayan: for answering student questions & doubts
  • Chittibadrayya: for taking care of our accounting & financial reporting stuff
  • Jo (my wife): for helping me with customer support emails.

Companies & websites that helped me

I am thankful to Microsoft for creating Excel and helping me make a living out of it.

I am also thankful to,

Email & Productivity: Google, iPhone

Website, Hosting & E-commerce: WordPress, GoDaddy, Wishlist Member, KnownHost, Amazon, PayPal, E-Junkie2Checkout, EBS, GumRoad, FastSpring, Thesis, libsyn

Community & Connection: Twitter, Facebook, Youtube, Skydrive, pinterest

Software: Paint.NET, Mozy, Notepad ++, Camtasia & Snagit, Skype, Rescue Time, Audacity

Apps: Flipboard, Feedly, Amazon Kindle

There are many other software, companies and websites that help me every day. I am really thankful to each and every one of these. Detailed listing here.

Last but not least…

I am able to perform at my best levels & help you because there is someone else that support, encourage and inspire me every day.

  • My family: Jo & kids support me and Chandoo.org in numerous ways. They shower me with love, humor and support everyday so that I can be awesome at what I do.
  • All my close friends & relatives: for supporting me & encouraging me to do better.

PS… something for you:

Here is a nice little surprise for you. Open a new Excel 2013 or above file & in A1 type

=BASE(PRODUCT(5,7,83)&REPT(3,2)&REPT(6,2),6^2)
&" "&BASE(2^15-2424,3*12)&" "&BASE(PRODUCT(19,1877,5,3,3),4*9)

for older versions of Excel (2010 or prior):

=SUBSTITUTE(SUBSTITUTE(ADDRESS(8,10^2*2+3^2,4)&
"P"&ADDRESS(2^2,21^2,2^2)&
ADDRESS(16/4,SUBSTITUTE(1517,15,96),4)
&"Y"&ADDRESS(2*4,2424+1000,2*2),8,""),4," ")
Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

38 Responses to “Time to showoff your VBA skills – Help me fix ActiveSheet.Pictures.Insert snafu”

  1. shokks says:

    I tried your code with 2003, it works.

    But, I know Addpicture does not take URLs anymore with 2007 onwards, perhaps its the same with picture.insert as well.

    http://support.microsoft.com/kb/928983/en-us

    The above link gives the solution as "picture fill in a shape such as a rectangle".

  2. Vince E. says:

    Tried to recreate this, but it worked fine for me. I just took the image of the error you showed in the post. Is there more info that can narrow this down a bit?

  3. Ian Hinckley says:

    Hi

    Not sure if this is what you're after, but I just tried this

    Sub Macro1()
    ActiveSheet.Pictures.Insert("http://www.google.co.uk/intl/en_uk/images/logo.gif").Select
    End Sub

    Tied a button to it on the sheet and it seems to work; hope this helps a little

    Ian

  4. Chandoo says:

    @All.. the issue is in Excel 2007. In 2003 ActiveSheet.Pictures.Insert seems to work fine. Unfortunately, I have design this in Excel 2007.. that is why I posted it here..

  5. Ian Hinckley says:

    v2

    Sub Macro1()
    Set n = ActiveSheet.Pictures.Insert("http://www.google.co.uk/intl/en_uk/images/logo.gif")
    With Range("c12")
    t = .Top
    l = .Left
    End With
    With n
    .Top = t
    .Left = l
    End With
    End Sub

    Ian

  6. Ian Hinckley says:

    That didn't come out very well. This positions at c12, so can change easily:
    Sub Macro1()
    Set n = ActiveSheet.Pictures.Insert("http://www.google.co.uk/intl/en_uk/images/logo.gif")
    With Range("c12")
    t = .Top
    l = .Left
    End With
    With n
    .Top = t
    .Left = l
    End With
    End Sub

    Works OK in 2007

    Ian

  7. Chandoo:
    Try 'ActiveSheet.Pictures.Insert'

    With ActiveSheet.Pictures.Insert("C:\Example.png")
    .Left = ActiveSheet.Range("A1").Left
    .Top = ActiveSheet.Range("A1").Top
    End With

  8. Jon Peltier says:

    activesheet.pictures.insert "C:\Documents and Settings\Jon Peltier\Desktop\2007 stuff\insert_charts_2007.png"

    Works for me in 2003 SP3 and in 2007 SP2.

    Check the URL, and make sure you have internet connectivity.

    What also works, and is newer (pictures.insert was supposedly deprecated in '97):

    activesheet.shapes.addpicture "C:\Documents and Settings\Jon Peltier\Desktop\2007 stuff\insert_charts_2007.png", false, true, 200,200,100,100

    Unfortunately you must specify dimensions (the last four arguments) and you don't necessarily know them. But the picture size is still related back to the original picture size, so you could use scaleheight and scalewidth to fix this.

  9. Chandoo: I just re-read your post.

    The code I posted works for me. However, I'm using a local picture. If you try to add a picture from the web, this won't work.

    I remember solving this problem before by adding a rectangle shape first, then using the Shapes.AddPicture method to get a picture from the web.

    I'll find that code and post it here.

  10. Chandoo says:

    Some more updates... The code "ActiveSheet.Pictures.Insert (path)" works fine in Excel 2007 at home. Strange it failed miserably on my work laptop. Do you think this has got something to do with SP2 of MS Office 2007 or something like that?

    @Ian, Jon: Thanks for the code snippets. I guess I will use my home installation of excel to do this.

  11. Chandoo:

    Try this on your work laptop:

    Sub test()
    ActiveSheet.Shapes.AddShape msoShapeRectangle, 50, 50, 100, 200
    ActiveSheet.Shapes(1).Fill.UserPicture _
    "http://www.datapigtechnologies.com/images/dpwithPig6.png"
    End Sub

  12. Jon Peltier says:

    I didn't mean to post code with a local file, because both approaches worked with an internet image as well. This is in Excel 2007 SP2.

    activesheet.pictures.insert "http://peltiertech.com/images/2009-07/col_area_noblanks.png"

  13. Jon: Looks like I have SP1 on my client machine! I wasn't paying attention.

    Just checked my home computer where I have SP2, and you're right...looks like they fixed it.

  14. Jon Peltier says:

    I didn't even bother testing in SP1, though I could if anyone cares enough.

  15. teylyn says:

    I'm afraid I don't have a solution, but I find it remarkable that after attaining a certain status in the Excel world, Chandoo does not need to post on an Excel discussion forum to get help for an Excel problem. Instead, he posts on his blog and all the gurus come rushing to his help.

    Isn't Web 2.0 great?

  16. Jon Peltier says:

    Teylyn - I saw Chandoo's tweet first, and followed the link back to his blog.

  17. Chandoo says:

    @Mike.. thank you. I have seen the fill rectangle solution before posting the query here. For that matter, I have also tried the solution of embedding a browser control on a spreadsheet. both of these seemed a bit extreme. That is why I have asked it here.

    But I guess I will end up using it if I had to build this in work laptop.

    @Teylyn: I have thought of posting this in a forum. (Unfortunately I have not been to any excel group in the last 5 years. Last time I was active was when I built a jave based excel sheet construction solution using POI.HSSF classes of Apache... ) After searching for a few hours, I found several forum posts where others had same problem and the solution recommended (using .left and .top parameters) is not working for me. Incidentally most of these solutions are from a certain Jon Peltier 😛

    I thought may be the problem is interesting for fellow blog readers. So I posted it here.

  18. Justin B says:

    Hi,
    Adapting the code in the question,

    [code]
    Sub InsPicture()
    pPath = "http://chandoo.org/images/pointy-haired-dilbert-excel-charts-tips.png"
    With ActiveSheet.Pictures.Insert(pPath)
    .Left = Range("a1").Left
    .Top = Range("a1").Top
    End With
    End Sub
    [/code]

    Seems to work fine

  19. Jon Peltier says:

    Looks like it was a problem in 2007 up to SP1, which was corrected in SP2.

  20. Chandoo says:

    @Jon.. seems like the case. I just checked the version at work laptop. it is 12.0.6331.5000 (SP1).

    Thank you so much every one. I really appreciate your time and suggestions in solving this.

  21. Jon Peltier says:

    Glad to help. I couldn't understand why something so straightforward wasn't working.

  22. Kieranz says:

    Hi All
    Is there a way of inserting a motion clip eg animated gif or swf or flv?
    Thks

    • Chandoo says:

      You can insert animated GIFs by inserting them in a browser control through VBA. For other types of movies, I can guess you can insert them as clip art.

  23. ashvini says:

    I WANT THE INSERT PICTURE BY USING COADING

  24. Lutz says:

    so currently i was struggling same as you, chandoo, with the insert picture method in excel 2007/10 from an url and came along your thread here.

    so i re-designed the code on the addshape method as mike was suggesting it and all of the sudden it works just fine.

    thanks alot to you guys, you were a great help
    a big salut from switzerland

  25. Santiago says:

    Hi guys,

    I need help copying and pasting an image with the path in a cell.
    I leave the code.

    And thank you very much!

    Sub Copiarimg()

    Dim pic As Picture

    With ActiveSheet

    Set pic = .Pictures.Insert(Range("f2").Value)

    With .Range("e9:g22")
    pic.Top = .Top
    pic.Left = .Left
    pic.Width = .Width
    pic.Height = .Height
    End With
    End Sub

  26. I've played around with the approaches in these comments, and the code below is what I've come up with. The ImagePath can be a local file or a URL. As Jon mentioned above, the trick is to set an arbitrary value for the width and height, then call the ScaleWidth and ScaleHeight methods afterward to reset the picture to its original size. Once the LockAspectRatio property is set, you can change the picture width and the height will automatically scale (or vice-versa).

    Sub AddPictureToRange(TopLeftCellAddress As String, ImagePath As String)

    Dim pic As Shape
    Dim l As Single, t As Single
    Dim temp As Single

    l = Me.Range(TopLeftCellAddress).Left
    t = Me.Range(TopLeftCellAddress).Top
    temp = 10# ' arbitrary value

    Set pic = Me.Shapes.AddPicture(ImagePath, msoFalse, msoTrue, l, t, temp, temp)
    pic.ScaleHeight 1#, msoTrue
    pic.ScaleWidth 1#, msoTrue
    pic.LockAspectRatio = msoTrue

    End Sub

  27. dip says:

    I need some help with inserting pictures. I have an excel file with a column of item numbers next to this row I want to insert a picture of this item. The pictures are coded with the item number so I tried to insert it with one of the codes above:

    Sub InsPicture()
    pPath = "http://img.bricklink.com/P/80/55236.gif"
    With ActiveSheet.Pictures.Insert(pPath)
    End With
    End Sub

    That worked but I need to do that for every row separtly.
    So I tried in the code
    pPath = "http://img.bricklink.com/P/80/"&Text(a1;"#")&".gif"

    But that gives errors.

    Anybody ideas?

  28. alex says:

    Hi Nicholas, I used your solution in a related problem in Excel 2003 and it worked flawlessly..thank you!

  29. Richard says:

    Hi Mike Alexander,

    Your solution with some changes was helpful in my problem in XL 2007, thanks.

  30. seejay says:

    Hi,

    thanks all. In addition, I had a problem with multiple pictures inserting (every new picture replaced the prior one). I've changed it a bit, may be helpful..

    Sub test()
    ActiveSheet.Shapes.AddShape msoShapeRectangle, 50 , 50, 100, 200
    ActiveSheet.Shapes(1).Fill.UserPicture _
    "http://www.datapigtechnologies.com/images/dpwithPig6.png"
    ActiveSheet.Shapes(1).Copy
    ActiveSheet.Paste
    End Sub

  31. Jon Peltier says:

    Try this instead:
     
    Sub test()
    ActiveSheet.Shapes.AddShape msoShapeRectangle, 50 , 50, 100, 200
    ActiveSheet.Shapes(ActiveSheet.Shapes.Count).Fill.UserPicture _
    "http://www.datapigtechnologies.com/images/dpwithPig6.png"
    End Sub

    • Kez says:

      Thanks to everyone, this thread has been very helpful. However, image inserting still doesn't work quite as expect for me.

      While I can get a picture inserted into an Excel 2010 worksheet using either:

      1) ActiveSheet.Shapes(ActiveSheet.Shapes.Count).Fill.UserPicture...
      2) ActiveSheet.Pictures.Insert(pPath), and
      3) Shapes.AddPicture...

      unfortunately the images all insert with a display size determined not by the actual pixel dimensions of the image but by the dpi resolution.

      So for example, if I insert two copies of the exact same 600x600 pixel image, one with a 300dpi resolution and the other with 72dpi, they display at vastly different sizes on screen.

      While this might be intended behaviour for Excel in order to maintain a WSYWIG printing layout, I actually need a way to insert the image based on the the actual pixel dimesnsions and ignoring the dpi resolution.

      Any help appreciated.

      Thanks
      Kez

  32. Kez says:

    Not doing an intentional bump, but realised I posted in rely to one of the repsonses here instead of to the main thread, so reposting.
    =====

    Thanks to everyone, this thread has been very helpful. However, image inserting still doesn’t work quite as expected for me.

    While I can get a picture inserted into an Excel 2010 worksheet using any of the below methods:

    1) ActiveSheet.Shapes(ActiveSheet.Shapes.Count).Fill.UserPicture....
    2) ActiveSheet.Pictures.Insert(pPath), and
    3) Shapes.AddPicture....

    unfortunately the images all insert with a display size determined not by the actual pixel dimensions of the image but by the dpi resolution.

    So for example, if I insert two copies of the exact same 600×600 pixel image, one with a 300dpi resolution and the other with 72dpi, they display at vastly different sizes in Excel on screen.

    While this might be intended behaviour for Excel in order to maintain a WYSIWYG printing layout, I actually need a way to insert the images based on the the actual pixel dimesnsions and ignoring the dpi resolution.

    Any help appreciated.

    Thanks
    Kez

  33. Kez says:

    Well, answered my own question 🙂

    For those who might be interested, you can use this function:

    Public Function GetPicDims(strFilePath As String, strFileName As String) As String
    GetPicDims = CreateObject("Shell.Application").Namespace((strFilePath)). _
    ParseName(strFileName).ExtendedProperty("Dimensions")
    End Function

    to get the dimensions of the image you want to insert. Then you can parse the return string and use the width and height values to add a rectangle shape of the appropraite size, like:

    ActiveSheet.Shapes.AddShape msoShapeRectangle 50, 50, iWidth, iHeight

    which you then fill with the picture:

    ActiveSheet.Shapes(ActiveSheet.Shapes.Count).Fill.UserPicture "c:\temp\test.jpg"

    This way the picture gets inserted using the pixel dimensions and the (print) resolution gets ignored.

    If desired, the GetPicDims function can be made more generic to get other ExtendedProperties.

    Regards
    Kez

Leave a Reply