VBA and Macro for a vlookup input and retrieve

anchorruud

New Member
Joined
Aug 18, 2010
Messages
1
What would be the macro and vba code for this project? Here is a print screen of a project I have designed. It is for a small hotel, for group sales managers. I don't want them to have access to change the excel file. Currently they manually put in all the dates they are looking for to get a group rate. I have the excel sheet protected but I want them to have a simple GUI they can input dates, request the number of rooms that will be needed across multiple dates and then a rate will be spit out for them. Currently I have an excel file that can do all of this for them.....but unfortunately they dont all know how to use excel and it has multiple years on the sheet (alot of info to scroll through to find dates).
I have two text boxes one for input one for output, one command button, a monthview calendar with multiple date selection
Here is all i have got for vba code, no macro created yet.

Essentially what I would like to see happen is they would first: pick dates, then choose the number of rooms needed per each of those dates, so the formula would find the dates in each row put the number of rooms in the cell next to the dates then call up whatever number shows up in cell N1. The excel already has all the formulas done. I just need it to find and input and then retrieve. Not sure how to do ANY of that. I am using american dates.....I can have them formatted to do either usa dates (mm,dd,yyyy) or retrieve as a serial number that corresponds to a date, whichever is easiest.

photo.jpg

Private Sub CmdGetRate_Click()
End Sub

Private Sub MonthView1_DateClick(ByVal DateClicked As Date)
End Sub

Private Sub RoomsPerNight_Change()
End Sub

Private Sub SuggestedRate_Enter()
End Sub

What do you guys suggest?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,016
Messages
6,122,700
Members
449,092
Latest member
snoom82

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top