+ Reply to Thread
Results 1 to 11 of 11

problem with Formating the DataValidation List

  1. #1
    Registered User
    Join Date
    10-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Question problem with Formating the DataValidation List

    Hello guys,
    I am doing a project and i need to pull the values from the excel sheet, just for maintainability i need to make some modifications to the
    existing data, and am unable to attain what i wanted.

    Three things i have
    1. package name
    2. Tc.Name
    3. Ie,MOZ,SAF
    Hirearchy is from 1 to 3. Am using the data validation list to set it manually what i wanted. But i need some tweaks to it. I have attached the sample excelsheet along with this thread.

    If i enable the package name it should automatically display all the Tc names as enabled and other three columns as YES
    If i disable it all tc names should be set as disabled and other three colums as NO
    If i set as partial it should allow me to set the other three columns manually and it should also allow me to set the tc names mode also.

    One more thing is
    here package 1 starts with A3 package 2 with A 11 and package 3 with 19

    P1 is enabled so it displayes all tc names until C9
    P2 is disabled so it shouldnot display anything till C17
    P3 is partial so i can display till c 25.

    I am not sure how tough it is in making but i would love to do that, i browsing through this forum and i thought i could get some help. plz share ur thoughts.
    Thanks in advance
    Attached Files Attached Files
    Last edited by appunu; 10-31-2010 at 11:46 PM.

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Help with some Excel actions

    hi Appunu,

    Welcome to the Forum

    Can you please change your thread title?
    Rules 1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: problem with Formating the DataValidation List

    This macro placed into the sheet1 code module will do what you've asked.
    Please Login or Register  to view this content.

    Just make your choices in column B and the other cells will format.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    10-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem with Formating the DataValidation List

    Quote Originally Posted by JBeaucaire View Post
    This macro placed into the sheet1 code module will do what you've asked.
    Please Login or Register  to view this content.

    Just make your choices in column B and the other cells will format.

    Thanks a lot.. This is exactly what i asked. Is it possible to hide the rows correspnding to the particular package is disabled, preventing accidental edititing of the TC names and same for enabled, but not hiding the rows..

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: problem with Formating the DataValidation List

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem with Formating the DataValidation List

    Quote Originally Posted by JBeaucaire View Post
    Please Login or Register  to view this content.
    OMG OMG OMG!!! u are the man thanks a lot dude!!!. THis is what i wanted!!! i wanna know whether this is possible. Like placinng each package and its corresponding Tcname and other columns inside a table. only one problem with the above code is that when its enabled state i should not able to edit the corresponding contents. Disabled is fine also partial is fine. When everything is in a table i could pull the data easily and dynamically add contents..

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: problem with Formating the DataValidation List

    Unless you lock the sheet, the cells are editable. Other than that I don't know what you mean.

  8. #8
    Registered User
    Join Date
    10-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem with Formating the DataValidation List

    Quote Originally Posted by JBeaucaire View Post
    Unless you lock the sheet, the cells are editable. Other than that I don't know what you mean.
    Locking the sheet is impossible. So, is it possible to put each package names and its corresponding contents in a table and perform the same operations as defined in the previoius codes. so that it will be easier for me to Pull the data from Java through JXL by just defining the table names...Thanks in advance...

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: problem with Formating the DataValidation List

    The code I gave you works off of cell addresses. You can put your data into a table and adjust the macro to the new addresses.

  10. #10
    Registered User
    Join Date
    10-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: problem with Formating the DataValidation List

    Quote Originally Posted by JBeaucaire View Post
    The code I gave you works off of cell addresses. You can put your data into a table and adjust the macro to the new addresses.
    Ah okay... i thought it would be easier for me if each package in diff table.. anyways that code helped me a lot

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: problem with Formating the DataValidation List

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.


    ========

    Note: In each of your followup posts above you QUOTED my entire post, for no purpose at all. Do not use the QUOTE feature superflously. Use the QUICK REPLY box down below. Cheers.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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