+ Reply to Thread
Results 1 to 5 of 5

Help needed to edit macros due to change in data range

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    14

    Help needed to edit macros due to change in data range

    I have a workbook that is used as a booking system and one of the macros inside this workbook enables the name of the person who has booked the room at that time to show up when I hover my mouse over the cell which is highlighted.

    Original.zip

    After feedback from my users, we have decided to switch the columns for "Room" and "Date" such that "Date" is in column B and "Room" is in column C for the "For View; Make Reservation" sheet in the workbook.

    Revised.zip

    The problem now is that the macros doesn't work when these 2 columns are switched. Would anyone know how to modify the existing macro so that it works?

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,521

    Re: Help needed to edit macros due to change in data range

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Help needed to edit macros due to change in data range

    Hi Mike,

    Thanks for that! However, I just realised that the "Check Availability" sheet does not update itself automatically when the date in D3 is changed. Instead, every time I changed the date, I have to go to the "View ; Make Reservation" sheet and then back to the "Check Availability" sheet before it can be updated. Is there any macros which I can use to update it automatically?

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,521

    Re: Help needed to edit macros due to change in data range

    Replace the code in your Check Availability sheet to this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Help needed to edit macros due to change in data range

    Thanks Mike! You're a genius!!!

+ 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