+ Reply to Thread
Results 1 to 2 of 2

VBA code to read the value of a RANGE NAME and use it as Validation

  1. #1
    Registered User
    Join Date
    05-08-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    10

    Unhappy VBA code to read the value of a RANGE NAME and use it as Validation

    Hi Gurus,

    I have a requirement where I need to add a macros button to execute a VBA code that will read the text from a "cell" that contains a "data validation list" with three options ( No Revision, Revision 1, Revision 2) and based on the option selected for that cell from the drop-down (saved as data range "Revision_range") allow for different actions, such as;

    - if the drop-down selection is "No Revision" display text "No revision selected" and exit sub
    - if the drop-down selection is "Revision 1" or "Revision 2" display text "Saving to Selected Revision version" and then run my SAVE method.

    Lastly display the text "Revisions Created"

    I hope ya'll can assist me here, thanks in advance

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: VBA code to read the value of a RANGE NAME and use it as Validation

    Check it

    Please Login or Register  to view this content.

+ 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. Adapt this clean code from read to read + sum:
    By 1.jclozano in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-25-2018, 01:17 AM
  2. [SOLVED] Setting data validation alerts to off to selected range in code
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2017, 03:15 AM
  3. [SOLVED] How to read the values from the drop-down of cells containing Data validation?
    By timmu in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-25-2014, 04:31 AM
  4. Code Read
    By mc11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2012, 02:41 AM
  5. Excel Macro - Read excel & read excel range - save as text
    By se.sathish in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2008, 09:00 AM
  6. Replies: 10
    Last Post: 01-30-2006, 09:35 PM
  7. read macro code by vb code
    By Francesco Geri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2005, 06:05 AM

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