+ Reply to Thread
Results 1 to 3 of 3

Userform to enter data to specific cell + more

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    London, UK
    MS-Off Ver
    Excel 2011 Mac
    Posts
    17

    Userform to enter data to specific cell + more

    Hi all. I have several questions for you gurus but I will start with a brief background. I have done some coding before but mainly html and CSS, I think I covered some VB at college, but that was some 20 years ago but some screens do look familiar but cannot remember any of it.

    Just so you know roughly what its all about... I am making an excel document for staff to check and submit their annual leave to. I have completed the database and got all the formulas how I want them, its just the userforms to make it easier to enter data is where I need help.

    The database consists of (amongst others) firstly the date, how many staff we have, the number on annual leave, the number on other leave (training, etc) and probably the most important box; a formula box calculating how many people can take annual leave on that day taking into account the minimum strength and those who already have it off.

    Need to know bit ==> To the right of this are two boxes, 4 horizontal cells for peoples staff numbers that are taking annual leave, then 6 cells for peoples staff numbers that are taking other leave. These two groups are totalled using a COUNT formula to work out how many are off on ether.

    What I need to do ==> I need to make a userform that will do the following:
    1) Have a text box which will, when entered with a date (that the staff want annual leave for) will go off and search in the correct date row (date is first column) into cell 'O' and return the result next to the text box on the form. (This will be a number 0-4)

    2) IF the number is equal or greater than 1 (then annual leave can be granted) another button appears next to this and says book which when clicked, adds the persons staff number (maybe entered in an text box before the date) to the next available Annual Leave box cell as mentioned earlier. These cells are Q,R,S,T,U,V.

    3) IF the result to 2) is 0 (annual leave cannot be granted) the result will just say 0 or No and no button will appear to submit the annual leave.

    It don't sound amazingly difficult in my head, but I understand it probably is so any advice, no matter how small, and a few notes on the coding that you post would be greatly welcomed.

    I will try and post an image of the database and mock form that I am trying to create to aid you.

    Thanking you greatly in advance.
    Steve.

  2. #2
    Registered User
    Join Date
    12-02-2013
    Location
    London, UK
    MS-Off Ver
    Excel 2011 Mac
    Posts
    17

    Re: Userform to enter data to specific cell + more

    Heres an image of the database.... http://postimg.org/image/kn1pye00j/

    And what the form will roughly look like...
    http://postimg.org/image/i88ilke45/

  3. #3
    Registered User
    Join Date
    12-02-2013
    Location
    London, UK
    MS-Off Ver
    Excel 2011 Mac
    Posts
    17

    Re: Userform to enter data to specific cell + more

    Anyone?? I need help. I'm useless

+ 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. Enter data under specific Range (columns) via userform and combobox
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 12:01 PM
  2. Replies: 3
    Last Post: 09-20-2013, 04:24 PM
  3. How to enter data in a specific cell (c8 in all sheets ) when data is on 1st sheet
    By dinesh kumar007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2013, 08:52 AM
  4. Force user to enter specific alphabets in userform
    By saji in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2013, 10:22 AM
  5. Enter text into a specific cell using a userform
    By Cushionsupplier in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2010, 05:38 PM

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