+ Reply to Thread
Results 1 to 7 of 7

Thread: 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 Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472

    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 07:47 AM.
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

  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 Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472

    Re: Auto fill cells!

    You could assign this macro to a single button

    Sub switch()
    Columns("H:L").EntireColumn.Hidden = Not Columns("H:L").EntireColumn.Hidden 
    End Sub
    to toggle the table, or assign code like this

    Sub turnon()
    Columns("H:L").EntireColumn.Hidden = False
    End Sub
    
    Sub turnoff()
    Columns("H:L").EntireColumn.Hidden = True
    End Sub
    to each of the option buttons. Further example is attached.
    Attached Files Attached Files
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

+ 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.2.0