+ Reply to Thread
Results 1 to 2 of 2

IPicture object not populating Picture properties.

  1. #1
    Forum Contributor
    Join Date
    03-07-2006
    Location
    India
    MS-Off Ver
    MSOffice 365 Professional 64 bit
    Posts
    108

    IPicture object not populating Picture properties.

    I am trying to store pictures inserted into a worksheet of another workbook, from a folder to a Public Dictionary object, so that i can use it later for inserting to my Current Workbook sheet. I found a 64 bit code to import pictures from Excel Shapes to a Public Dictionary / Collection on this same site :

    http://www.vbaexpress.com/forum/show...-picture/page2

    which works most times and sometimes suddenly gives an Error on "CloseClipboard" :

    "1004. Application Defined or Object Defined Error."
    - I am not sure but i think it may be happening because of Clipboard not closing quickly. So added a Do...DoEvents Loop Until H=0. It works most of the time, but still gives same error after loading a couple of Pictures from folder. How to tackle this issue?

    - Once the Dictionary gets populated, i tried running a different Procedure to check if Dictionary was still populated. It maintained its contents until an error occurred. In which case, i have to run the "PicCollection" procedure again.

    Question: How do i resolve the error of IPicture properties not getting populated?

    Question: How do i insert the picture from the Dictionary or Collection to my Thisworkbook Sheet?


    Here's the full code i am using. Maybe you will be able to quickly identify the root cause and suggest an appropriate solution :
    Last edited by junoon; 02-19-2020 at 12:08 PM.

  2. #2
    Forum Contributor
    Join Date
    03-07-2006
    Location
    India
    MS-Off Ver
    MSOffice 365 Professional 64 bit
    Posts
    108

    Re: IPicture object not populating Picture properties.

    Please Login or Register  to view this content.

    P.S: It seems "fnOLEError" is never called!


    Also, when it works,a single IPicture does not show any properties populated!
    Attached Images Attached Images
    Last edited by junoon; 02-19-2020 at 12:06 PM.

+ 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. Reset Object Properties
    By ScherzoVivo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2019, 05:56 AM
  2. [SOLVED] How to set class object properties
    By Tsjallie in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-18-2014, 02:58 PM
  3. Replies: 0
    Last Post: 01-09-2014, 11:27 PM
  4. Setting Picture Properties Defaults
    By tornado99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2014, 08:53 PM
  5. Picture Properties VBA
    By jwskibum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2008, 05:38 PM
  6. [SOLVED] PasteFace from IPicture
    By AMDRIT in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2005, 07:33 PM
  7. HELP! Object, Properties & Methods
    By dee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2005, 07:06 PM

Tags for this Thread

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