+ Reply to Thread
Results 1 to 3 of 3

Invalid use of Me keyword

  1. #1
    Registered User
    Join Date
    11-22-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    23

    Invalid use of Me keyword

    I am trying to assign this macro to a shape

    Please Login or Register  to view this content.
    The code works if I assign it to an activex commandbutton but when I insert it as a module and assign to the shape it gives the message: 'Invalid use of me keyword'

    Any ideia on what I'm doing wrong?
    Thanks

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Invalid use of Me keyword

    Hi,

    Me will only work in a class module. You should replace it with ActiveSheet if you want the code in a normal module.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    11-22-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    23

    Re: Invalid use of Me keyword

    xlnitwit thanks! it worked perfectly!

+ 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. Search cells C1:C3000 for keyword and if exists place a keyword in A1:A3000
    By GregQuick in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-24-2015, 07:38 PM
  2. Replies: 6
    Last Post: 03-18-2014, 11:16 AM
  3. Invalid use of a keyword
    By LeapingLizard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2013, 05:12 PM
  4. Filter List by Keyword & copy the result in column by keyword as header
    By kitunga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2013, 07:16 AM
  5. Replies: 2
    Last Post: 07-13-2012, 04:02 AM
  6. "Invalid use of ME keyword" when trying to loop through all userform controls
    By max3732 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2012, 03:10 AM
  7. Invalid use of new keyword?
    By reddwarf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2010, 02:53 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