+ Reply to Thread
Results 1 to 8 of 8

object doesnt support this type of property or method

  1. #1
    Registered User
    Join Date
    01-14-2019
    Location
    Manchester, UK
    MS-Off Ver
    2012
    Posts
    8

    object doesnt support this type of property or method

    Hi Everyone,

    i have used this VBA code before and it worked fine, but now i am getting the above error and cant figure out for the life of me why..or how to resolve it..

    the line that is causing the issue is wbtarget.range (cell).select

    Range isnt available in the drop down.

    Does anyone have any ideas... just my luck i am using it first day of a new job and it is failing after working fine for 6 years previously..

    ultimately, i am selecting a range form workbook A, Sheet A and pasting it in to workbook B range with same sheet name...

    Please Login or Register  to view this content.
    Last edited by roken86; 01-14-2019 at 09:15 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,385

    Re: object doesnt support this type of property or method

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    Given that you explicitly refer to workbooks and ranges, there is no need to activate workbooks or select ranges.

    That said, Range is a Property of a Worksheet not a Workbook.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: object doesnt support this type of property or method

    You don't actually need that line or any of the Activate stuff you have in the rest of the code.

    PS When posting code can you please use CODE tags?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    01-14-2019
    Location
    Manchester, UK
    MS-Off Ver
    2012
    Posts
    8

    Re: object doesnt support this type of property or method

    apologies, i have now amended the post... if i dont need to define the target range how will it paste the data?

  5. #5
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: object doesnt support this type of property or method

    try below code
    Please Login or Register  to view this content.
    Regards,
    MohanS


    "Perfection is not attainable, but if we chase perfection we can catch excellence." - Vince Lombardi

    You can simply say thanks by clicking "*Add Reputation" icon

  6. #6
    Registered User
    Join Date
    01-14-2019
    Location
    Manchester, UK
    MS-Off Ver
    2012
    Posts
    8

    Re: object doesnt support this type of property or method

    Hi Mohan,

    thanks, this is definitely a simplified route, however, the same line gives the same error. wbtarget.range

    if i try to type it in manually, it doesnt seem to allow .range to follow wbtarget?

  7. #7
    Registered User
    Join Date
    01-14-2019
    Location
    Manchester, UK
    MS-Off Ver
    2012
    Posts
    8

    Re: object doesnt support this type of property or method

    I Have managed to resolve this using the below..

    Please Login or Register  to view this content.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: object doesnt support this type of property or method

    Like I said, you don't need to Activate.
    Please Login or Register  to view this content.
    PS This is using K87 as the target range, is that not what you want?
    Please Login or Register  to view this content.

+ 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. [SOLVED] error 438 object doesnt support this property or method
    By george.m in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2017, 05:57 AM
  2. Object doesnt support this property or method
    By dlister in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2015, 05:32 AM
  3. [SOLVED] Run-time error '438' object doesnt support this property or method
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2014, 03:20 AM
  4. object doesnt support this property or method
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2014, 02:19 PM
  5. [SOLVED] Run time error 438, object doesnt support this property or method
    By 33CDonnelly in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-02-2013, 11:21 AM
  6. VBA Error: Object doesnt support the property or method
    By AntiPivotTable in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2013, 12:25 AM
  7. Object doesnt support this property or method- error
    By kiran527 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2012, 09:39 AM

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