+ Reply to Thread
Results 1 to 4 of 4

Experiencing "Run Time Error 438: 'Object doesn't support this property or method'"

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Panama City, Florida
    MS-Off Ver
    Excel 2010
    Posts
    43

    Experiencing "Run Time Error 438: 'Object doesn't support this property or method'"

    Hello,

    I need to copy a sheet from a closed workbook and am using the following code to do so.
    Please Login or Register  to view this content.


    When I run the code I get the Run Time Error 438: 'Object doesn't support this property or method" when I run the code. Debugging highlights the 5th line "wbSource.Sheet1.Copy After: =wbTarget.Sheets1", so it must be something dealing with that. Do I need to enable other objects? Not sure how to fix this...
    Last edited by BYizz; 04-29-2013 at 03:53 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Experiencing "Run Time Error 438: 'Object doesn't support this property or method'"

    hi BYizz, try to amend this line:
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    where Sheets1 and Sheet1 are names of the sheets concerned

    You can not refernce a sheet within object by its codename
    Last edited by watersev; 04-29-2013 at 04:02 PM.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Experiencing "Run Time Error 438: 'Object doesn't support this property or method'"

    Another example...

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-04-2012
    Location
    Panama City, Florida
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Experiencing "Run Time Error 438: 'Object doesn't support this property or method'"

    Awesome. That was an easy fix, thanks for your help guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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