+ Reply to Thread
Results 1 to 7 of 7

Auto fill cells!

  1. #1
    Registered User
    Join Date
    11-24-2010
    Location
    Torquay
    MS-Off Ver
    Excel 2003
    Posts
    50

    Auto fill cells!

    Hi

    Thank you to those who helped me out last time.

    I am using a spreadsheet and wish to be able to provide a 'Yes', 'No' radio button. If 'Yes' is selected, I would like the spreadsheet to show a hidden table with info relevant to the yes choice on it.

    First, can I hide a table, and second, what kind of Macro would be needed to expose the data?

    Thank you again

    NickJW

  2. #2
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: Auto fill cells!

    *offtopic*

    More reasonable place to thank the previous guys would be that particular thread where they helped you

    *offtopic*
    An example file is never useless!

    Tried an example function of mine and got errors?
    - Had you found them, replace ; with , and , with .

  3. #3
    Registered User
    Join Date
    11-24-2010
    Location
    Torquay
    MS-Off Ver
    Excel 2003
    Posts
    50

    Re: Auto fill cells!

    Good point KiPA thank you

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Auto fill cells!

    Hi,

    No code required. Use option buttons to control a cell value, and then use conditional formatting to "white out" the table based on the contents of that cell.

    See attachment:



    BTW - To express your thanks to folk that have helped you, how about clicking the blue scales on the top right of their post?!
    Attached Files Attached Files
    Last edited by sweep; 11-25-2010 at 08:47 AM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  5. #5
    Registered User
    Join Date
    11-24-2010
    Location
    Torquay
    MS-Off Ver
    Excel 2003
    Posts
    50

    Re: Auto fill cells!

    Thanks sweep. I have done so!

  6. #6
    Registered User
    Join Date
    11-24-2010
    Location
    Torquay
    MS-Off Ver
    Excel 2003
    Posts
    50

    Re: Auto fill cells!

    Just a thought. Is there any way of hiding actual rows that contain the data rather than just hiding the data by reducing the colour to white? Still using the button controls when needed.
    RSVP
    NJW

  7. #7
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Auto fill cells!

    You could assign this macro to a single button

    Please Login or Register  to view this content.
    to toggle the table, or assign code like this

    Please Login or Register  to view this content.
    to each of the option buttons. Further example is attached.
    Attached Files Attached Files

+ 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