+ Reply to Thread
Results 1 to 4 of 4

validation code

  1. #1
    Registered User
    Join Date
    07-13-2007
    Posts
    6

    validation code

    Hi!

    I have a list of chapters in excel. one column is used to write "x" on the rows that represent the chapters i want to include in a document. I want to be able to do some choices in excel. Like, all the chapters are optional, but some chapters can't be included in the document at the same time. So i want some validation-code that results in a error-message whenever a user mark two rows which can't be included at the same time.

    i hope you understand what i mean:p


    thanks

  2. #2
    Registered User
    Join Date
    06-11-2007
    Location
    Nonthaburee Province, Thailand
    MS-Off Ver
    MS Office 2003 to MS Office 2010
    Posts
    82
    Dear krutmoen

    It's good that post some sample of data, your question and your need on website. It will help use to help you correctly.
    N. Yauvasuta
    Power User Excel.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    what you want can be done with a worksheet change macro.

    With out specific details I can only give general answers


    'These instructions pre typed & are worded to cater for the novice programmer
    'To install macro to correct location

    'Copy this macro
    'GoTo Excel
    'Select sheet this is to appy to
    'Right Click on Sheet Name Tab > select View Code
    'Past macro into the Worksheet Module displayed


    Please Login or Register  to view this content.
    To test macro enter X in B3 & B4
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Registered User
    Join Date
    07-13-2007
    Posts
    6
    your code work... but i have problems with making it work for like 5 cells. so what should i do if i want to disallow the user to choose more than 1 cell out of 5?


    thanks again

+ Reply to Thread

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