+ Reply to Thread
Results 1 to 2 of 2

Use to Form to Hide Rows

  1. #1
    Registered User
    Join Date
    07-19-2007
    Posts
    51

    Use to Form to Hide Rows

    I have never programmed a form before but think it might be handy for my needs. I am creating a spreadsheet that users fill out their preferences for clothing. Lets say the person can pick up to three shirts, and on each one has to pick a color and size. My spreadsheet has three identical rows to contain the size and color for up to the max of three shirts. I want a form that users encounter upon initially opening the document that asks "how many shirts do you need" If the user enters 1 then the spreadsheet will hide the second and third rows. If the user enters 2 then the spreadsheet will hide the third row. If the user enters 3, all rows will be visible. Can this be done? As I stated, ive never programmed a form before. Any help would be appreciated

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can use an InputBox or a UserForm. This is an inputbox

    Please Login or Register  to view this content.
    Right click the small Excel Icon in the top left corner, next to File
    Choose View code to open the VB Editor
    Set the left hand drop down to workbook
    Paste the code here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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. writing a macro to hide rows
    By Bob_Warner in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-25-2008, 09:43 AM
  2. Hide Rows based on dropdown selection...
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2008, 04:09 PM
  3. Use Checkbox to hide rows
    By Tybalt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2008, 11:54 AM
  4. Replies: 1
    Last Post: 06-30-2007, 01:07 AM
  5. button to hide unused rows
    By emgee in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-21-2006, 04:13 PM

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