+ Reply to Thread
Results 1 to 3 of 3

error: Method or Data Member not found

  1. #1
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    error: Method or Data Member not found

    Please Login or Register  to view this content.
    This part of the code .Range is highlighted with the error message: Method or Data Member not found

    Please Login or Register  to view this content.
    What am I doing wrong?


    Whole Macro:
    Please Login or Register  to view this content.
    Last edited by CRIMEDOG; 07-26-2013 at 11:10 AM.

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

    Re: error: Method or Data Member not found

    Workbooks don't have a Range property.

    You need to specify which worksheet in the workbook you want to refer to.

    If it's the active sheet replace ThisWorkbook with ThisWorkbook.ActiveSheet.[
    If posting code please use code tags, see here.

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: error: Method or Data Member not found

    That was it - I had changed the Activesheet to ThisWorkbook to avoid it trying to run on a different workbook that is open at the same time.
    Then I forgot to add back the ActiveSheet. (although I did change it to Worksheets("Entry") since this is the only sheet I want it to run on.)

    Thanks for the quick response - I was not seeing it.

+ 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] Compile error: Method or data member not found.
    By ndtsteve in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2012, 11:31 AM
  2. Compile Error: Method of data member not found (VBA)
    By vbatech in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-14-2012, 05:37 PM
  3. Compile Error:Method or Data Member Not Found
    By loknath in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2012, 04:03 AM
  4. Compiler error: Method or data member not found
    By sathikbabu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2011, 02:51 AM
  5. Compile Error Method or data member not found
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2005, 06: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