Consulting

Page 2 of 2 FirstFirst 1 2
Results 21 to 23 of 23

Thread: Replace text in cell with picture (or insert picture into same cell)

  1. #21
    VBAX Regular
    Joined
    May 2017
    Location
    Northwestern Arkansas
    Posts
    10
    Location
    Thank you so much, this works like a charm!

    For educational purposes, how does the "Call ClearPics(ws1)" work where it does?

    I initially thought with it ordered in that manner, it would clear the pictures as soon as it cycled through each one in the loop. I guess my understanding of the logic is far too insufficient at present.

    Again, thank you so much! Now my wife won't have to spend countless hours at home changing these for her retirement home employer.

  2. #22
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    On the assumption the layout may change, it seemed best to remove any existing pictures from the range prior to adding new ones. You could make this a separate procedure.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #23
    VBAX Regular
    Joined
    May 2017
    Location
    Northwestern Arkansas
    Posts
    10
    Location
    That makes sense now. Again, thank you so much! Her workload has gone from spending around 3 hours doing this, down to around 10 minutes. Now she and I can actually spend some time together!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •