+ Reply to Thread
Results 1 to 6 of 6

Run Time Error 438

  1. #1
    Registered User
    Join Date
    09-29-2008
    Location
    USA
    Posts
    16

    Run Time Error 438

    I have the following code in a macro and when it is run I get a Run Time Error 438 Object doesn't support this property or method. This occurs at the first occurrance of the destination/source. Any suggestions?

    Please Login or Register  to view this content.
    Last edited by lj123; 11-13-2008 at 01:30 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    A window doesn't have a Range propery.

    Maybe something like ...
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    This is her macro with your correction. It requires cells from Sheet1 in Book1.xls be copied to Sheet1 in Book2.xls. But I get an error on Book2.xls when I try to run it. (Application error '1004')
    Please Login or Register  to view this content.
    Both sheets are open when the code is run.
    Last edited by JBeaucaire; 11-12-2008 at 10:16 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    This code seems to work for me, no errors. Both workbooks open:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Ugh. I really have use for this myself and I can't make it work. I installed it exactly as shown and I get a runtime error '9' Subscript out of range on the line:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-29-2008
    Location
    USA
    Posts
    16

    Run Time Error 438

    Thanks everyone. I was able to get your original code JBeaucaire to work. I originally had trouble because my sheets weren't named Sheet1. But once I cleared those little details up it worked great. Thanks again.

+ 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