Consulting

Results 1 to 11 of 11

Thread: Room Booking System

  1. #1
    VBAX Regular
    Joined
    Sep 2019
    Posts
    57
    Location

    Room Booking System

    Hi there all

    I have been following a training blog by about a room booking system.

    How ever I cant get the VBA code to work for me.

    Keeps giving errors in red.

    I'm not sure if language settings are the problem?

    also not sure if this will work on both 32 and 64 versions of excel.

    PLS assist if you can
    Attached Files Attached Files

  2. #2
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Room-Booking Ked.xlsm

    I've got rid of most of the many errors but...

    1. I would advise you turn on Require Variable Declaration from the VBE Tools/Options
    2. You can only have one copy of a macro , eg there were 6 or 7 copies of the sheet selection macros (Sub Data_Sheet() etc)
    3. After writing some code use (from the VBE window) Debug/Compile. This will check for any obvious errors.
    Semper in excretia sumus; solum profundum variat.

  3. #3
    VBAX Regular
    Joined
    Sep 2019
    Posts
    57
    Location
    Thank you so much for assistance

  4. #4
    VBAX Regular
    Joined
    Sep 2019
    Posts
    57
    Location
    The person starting this booking training video did unfortunately not continue to complete the rest of the parts.
    A video shows what the completed project should look like.
    Any body board enough to assist me in the completion?
    It Would be hugely appreciated.

  5. #5
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Have you watched all 4 of the videos about this particular project and looked at all the text based tutorials (with downloads) around them?
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  6. #6
    VBAX Regular
    Joined
    Sep 2019
    Posts
    57
    Location
    Yes I have and added all the code provided. But with my limited experience dont know what should be working and what is still missing.
    For example ...... populating the persons information (name & shaded blocks) on the right still not working correctly.
    Also the ability to move the booking on the right and updating the info also not able yet.

  7. #7
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  8. #8
    VBAX Regular
    Joined
    Sep 2019
    Posts
    57
    Location
    Any body to help Please

  9. #9
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I think the problem is that you are a beginner and you are asking for help on a project that will take a lot of time for any pro to analyze and fix.

    Become less of a beginner.

    You can start by making a list of room numbers with columns for Occupied, Awaiting_Cleaning, Ready_To_Let, and Ranking.

    Using the Worksheet_BeforeDoublClick Event, write code that will

    1. Place a check mark in the Occupied column
    2. Put a checkmark in the Awaiting_Cleaning Column but only if the Occupied column is checked, then clears the occupied column
    3. Put a checkmark in the Ready_To_Let column, but only if the Awaiting_Cleaning column is checked, then clears that column.


    After you get started on that, we will help you with it.

    Then, using the SelectionChange Event, write code that duplicates steps 2 & 3
    After you get started on that, we will help you with it.

    Use Autoformat to color the Room numbers Red, Yellow, or Green, depending if they are occupied, awaiting, or ready

    This will help make you less of a beginner.

    Learn to use Arrays, see: snb's VBA and the VBAProject. Create Arrays that hold occupied rm #s, awaiting rm#s and Ready rm#s by Rank.
    After you get started on that, we will help you with it.

    Now, you can start to design UserForms. Don't worry about coding then yet, just layout those UserForms you need to utilize that simple Room numbers table above.
    After you get started on that, we will help you with it.

    Bookmark this thread so you can refer back to it often over the next several months
    Last edited by SamT; 11-10-2019 at 03:23 AM.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  10. #10
    VBAX Regular
    Joined
    Sep 2019
    Posts
    57
    Location
    Thank you for reply

  11. #11
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Great advice Sam, I shall be watching/learning/helping
    Semper in excretia sumus; solum profundum variat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •