Results 1 to 13 of 13

Can a Message box be brought up in the middle of code asking for criteria?

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Can a Message box be brought up in the middle of code asking for criteria?

    Hello all,

    I have a worksheet with several columns (30+). One of these columns is "Date Opened". This "date opened" column can have dates as early as 01/01/89 and as recent as today.

    Can a macro be made that does this

    1. Data/Sorts the whole worksheet by the "Date opened" column
    2. Brings up a message box in xx/xx/xxxx where format saying "Please enter the earliest date opened you would like to use, all other rows will be deleted"
    3. Do just that, delete all rows that have a date earlier than the date entered in the message box.

    So if the date of 01/01/2009 were entered into the message box, the macro would delete all dates in the "Date Opened" column that were older than that date.

    And then, continue on with the rest of the sub, if neccessary.


    thanks,

    duugg
    Last edited by duugg; 07-04-2009 at 11:14 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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