+ Reply to Thread
Results 1 to 3 of 3

selection.clear

  1. #1
    Forum Contributor
    Join Date
    04-09-2013
    Location
    City, World
    MS-Off Ver
    Office 365
    Posts
    213

    selection.clear

    Hi
    I selected an area in a sheet, created a button and assigned it to the macro below but I got error message saying "function or data member not found"

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,475

    Re: selection.clear

    That implies what you have selected isn't a Range object. You could confirm this by inserting the line

    Please Login or Register  to view this content.
    above Selection.Clear. What appears in the Immediate window?

  3. #3
    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
    37,209

    Re: selection.clear

    Works for me ... as a standalone routine, assigned to an ActiveX Command Button, and assigned to a Form Control Button.


    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Combobox Clear Selection
    By gsandy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2018, 08:55 PM
  2. [SOLVED] Clear down from current selection
    By LeeBillington in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2018, 02:11 PM
  3. Get Multi Selection Listbox userform and clear all selection
    By jp16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2018, 10:43 AM
  4. [SOLVED] Clear ComboBox Selection
    By jaredmccullough in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2014, 07:53 AM
  5. [SOLVED] a command to clear first selection
    By nasim12w in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2013, 07:20 PM
  6. Clear selection?
    By StargateFanFromWork in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2006, 12:15 AM
  7. VB coding to clear a selection?
    By StargateFan in forum Excel General
    Replies: 8
    Last Post: 01-29-2005, 11:06 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