+ Reply to Thread
Results 1 to 3 of 3

Modify macro to select and confirm row selection prior to clearing and sorting.

  1. #1
    Registered User
    Join Date
    06-12-2017
    Location
    Meridian, Idaho
    MS-Off Ver
    Excel - Version 1704 - MS Office 365
    Posts
    13

    Question Modify macro to select and confirm row selection prior to clearing and sorting.

    I have a macro that works currently by:
    1. Clearing a row from columns A through OJ for whatever cell is currently selected within "Table2".
    2. Sorting "Table2" alphabetically based on the values in the Name column - which is column A.

    I would like to edit this macro by:

    1. Creating a selection prompt for the user to select the row they would like to clear (from columns A through OJ). Instead of having to select the cell before running the macro.
    2. Creating a verification prompt for the user to confirm they would like to clear the data for the selected row. This prompt would list the name value in column A for that row and ask something like: "Are you sure you want to clear the data for [name]", and the user would either confirm or reject their selection.

    Here is the macro as currently written:


    Please Login or Register  to view this content.
    I would really appreciate help in modifying this macro.
    Last edited by jaljr; 08-23-2019 at 09:27 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    4,692

    Re: Modify macro to select and confirm row selection prior to clearing and sorting.

    You could start by reading and adhering to the forum rules, in this case #2.
    Makes it so much easier.

  3. #3
    Registered User
    Join Date
    06-12-2017
    Location
    Meridian, Idaho
    MS-Off Ver
    Excel - Version 1704 - MS Office 365
    Posts
    13

    Re: Modify macro to select and confirm row selection prior to clearing and sorting.

    Sorry, I hadn't read the rules thoroughly enough. I've edited my post per this rule.
    Last edited by jaljr; 08-23-2019 at 09:39 AM.

+ 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. Select a Formula Based on Prior Selection
    By mmchaley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2017, 02:51 PM
  2. [SOLVED] Modify existing code to select file instead of select folder
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2014, 09:41 AM
  3. [SOLVED] Macro is not copying to other sheet, just clearing contents of select case
    By Rokn in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-21-2013, 09:06 AM
  4. Replies: 0
    Last Post: 05-18-2013, 05:42 AM
  5. [SOLVED] Warning Message needed prior to clearing spreadsheet
    By jrtdcg in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-29-2012, 12:41 PM
  6. Macro to confirm that a drop down selection has been made
    By prontrad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2010, 12:57 PM

Tags for this Thread

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