+ Reply to Thread
Results 1 to 6 of 6

Getting compile error 438 object doesn’t support this property or method

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Getting compile error 438 object doesn’t support this property or method

    Hi all,

    I want to insert a picture of a particular student after entering a roll no. of him in cell ‘g7’ automatically. If I enter a roll no. in cell ‘g7’ and hid enter key then the photograph of that particular student should insert in cell ‘e2’ automatically.

    I want to delete a picture from ‘e2’ first and then want to insert a picture in it.
    The code for inserting picture is working fine but the code for deleting the picture first is not working. I am getting compile error ‘438 object doesn’t support this property or method’

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanking you,
    Sincerely,

    mso3

  2. #2
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 438 object doesn’t support this property or method

    Hi all,
    Now I have made a amendment in the code and getting compile error 'syntax error'.

    Please see the following code and suggest me a correction.

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanking you.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Getting compile error 438 object doesn’t support this property or method

    Hi,

    Try the following to delete the picture. It will delete all pictures whose 'Top Left Cell' is in Cell 'E2'.
    Please Login or Register  to view this content.
    Lewis

  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 438 object doesn’t support this property or method

    Hi Lewis,
    Excellent! It's working fine.

    The second part:

    If I enter a roll number of a student in 'g7' Register sheet then the code should run.

    Please suggest me a sheet code for it positively.

    Thank you.

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Getting compile error 438 object doesn’t support this property or method

    Thanks for the rep points. Try the following which is also included in the attached file.

    Sheet Module Code:
    Please Login or Register  to view this content.
    Ordinary Module Code such as Module1:
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files
    Last edited by LJMetzger; 03-28-2015 at 03:28 PM.

  6. #6
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 438 object doesn’t support this property or method

    Hi Lewis,
    Excellent! It's perfect as per my requirement now.
    'range("b20").select is only for testing purpose and no any effect. I have deleted it now.

    Really, I appreciate you for the same.

    Thank you and have a nice day.

+ 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. Run time error '438': Object doesn't support this property or method
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2014, 04:59 AM
  2. Object Doesn't support this property or method Error
    By andrew c. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2011, 02:07 PM
  3. error '438', Object doesn't support this property or method.
    By ironmonkey888 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2010, 09:23 AM
  4. help with my code please. (Error: Object doesn't support this property or method)
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2006, 10:50 AM
  5. Replies: 1
    Last Post: 07-12-2005, 04:05 PM

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