+ Reply to Thread
Results 1 to 5 of 5

Extending existing VBA code

  1. #1
    Registered User
    Join Date
    07-14-2008
    Location
    INDIA
    Posts
    78

    Extending existing VBA code

    Hi,

    I have downloaded an example sheet which demonstrates how a simple form can be created on a spreadsheet to save data to another sheet that acts as a database.

    It is perfect for me if a small extension can be* added to it.

    I have various classes like Mazdoor, Class I, Class II etc.,. Can I have a drop down box in the first cell which contain all these classes so that I can select a particular class and the data entered is saved to that particular class sheet only.

    Any help is greatly appreciated.

    Thank you.
    Attached Files Attached Files

  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 do this easily with Data validation, look at the tutorials on the same site

    http://www.excel-it.com/data_validation.htm
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-14-2008
    Location
    INDIA
    Posts
    78
    Hi Roy,

    Thanks for your. It only teaches how to create a drop down box. Now I have created a drop down list which contains names of sheets in my work book. If click on a sheet's name, the data which I entered requires to be saved in the corresponding sheet.

    Can you give me a macro for this.

    Thank you.

  4. #4
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    Hi
    Cell A1 has a dropdown. B2 to F2 is where you enter data. Add more sheets and extend the list in col X (Study Data validation as suggested by RoyUK)
    Ravi
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-14-2008
    Location
    INDIA
    Posts
    78
    Hi Ravi,
    Thank you very much. This is exactly what I wanted.

    Can you do another small favour.

    After entering data from B2 to F2, next "Tab" press can select "Click me to enter data" button and pressing "Space Bar" may do the rest.

    Regards,
    Jaya Kumar.

+ 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