Good evening, i have searched far and wide across this site and have come across a few that have helped but nothing i am able to manipulate to my needs , i have a userform that pulls up a window to input data into a Room/Bunk assignment spreadsheet,
the information that is to be put in the spread sheet is as follows : Name , Response team (yes/no) , SSE (yes/no) , Lifeboat (1/2) , Galley (yes/no) , there is an additional drop down box labeled Room/Bunk (1-62) **note the room/bunk combobox is the determining location for each of the others to be entered
A little information on this , it is a POB (personnel on board) sheet with rooms and specific bunks numbered 1-62
#'s 1-50 are rows A3-A52
#'s 51-62 are rows L3-L14
now
the name cells are in columns C3-C52 and M3-M14
Response team cells are in columns B3-B52 only
SSE cells are in columns H3-H52 & R3-R14
Lifeboat cells are in columns G3-G52 & Q3-Q14
Galley cells are in columns I3-I52 & S3-S14
what i need is for when i click a activex button to "add to POB" it will input name, response team, sse, lifeboat, galley data into specified cells based on the room/bunk selection
for example : if # 6 is selected then personnel name will be placed in cell C8 , response team will be placed in B8 , SSE will be placed in H8 , Lifeboat will be placed in G8 , Galley will be placed in I8 etc etc
i have the user form built already just need to make the activex button perform this action
here are the names for each combobox / textbox
Name = pobNAME
Room/Bunk = txtRMBK
Response Team = txtRT
SSE = txtSSE1
Lifeboat = txtLB
Galley = txtGAL
Below is the current code i have for the user form
Above is a image of what the userform menu will look like , if any additional information is needed i will do my best to provide it , thanks for any help.
the information that is to be put in the spread sheet is as follows : Name , Response team (yes/no) , SSE (yes/no) , Lifeboat (1/2) , Galley (yes/no) , there is an additional drop down box labeled Room/Bunk (1-62) **note the room/bunk combobox is the determining location for each of the others to be entered
A little information on this , it is a POB (personnel on board) sheet with rooms and specific bunks numbered 1-62
#'s 1-50 are rows A3-A52
#'s 51-62 are rows L3-L14
now
the name cells are in columns C3-C52 and M3-M14
Response team cells are in columns B3-B52 only
SSE cells are in columns H3-H52 & R3-R14
Lifeboat cells are in columns G3-G52 & Q3-Q14
Galley cells are in columns I3-I52 & S3-S14
what i need is for when i click a activex button to "add to POB" it will input name, response team, sse, lifeboat, galley data into specified cells based on the room/bunk selection
for example : if # 6 is selected then personnel name will be placed in cell C8 , response team will be placed in B8 , SSE will be placed in H8 , Lifeboat will be placed in G8 , Galley will be placed in I8 etc etc
i have the user form built already just need to make the activex button perform this action
here are the names for each combobox / textbox
Name = pobNAME
Room/Bunk = txtRMBK
Response Team = txtRT
SSE = txtSSE1
Lifeboat = txtLB
Galley = txtGAL
Below is the current code i have for the user form
VBA Code:
Private Sub addPOB_Click()
End Sub
Private Sub Userform_Initialize()
With Me.txtRMBK
.Clear
.AddItem "1"
.AddItem "2"
.AddItem "3"
.AddItem "4"
.AddItem "5"
.AddItem "6"
.AddItem "7"
.AddItem "8"
.AddItem "9"
.AddItem "10"
.AddItem "11"
.AddItem "12"
.AddItem "13"
.AddItem "14"
.AddItem "15"
.AddItem "16"
.AddItem "17"
.AddItem "18"
.AddItem "19"
.AddItem "20"
.AddItem "21"
.AddItem "22"
.AddItem "23"
.AddItem "24"
.AddItem "25"
.AddItem "26"
.AddItem "27"
.AddItem "28"
.AddItem "29"
.AddItem "30"
.AddItem "31"
.AddItem "32"
.AddItem "33"
.AddItem "34"
.AddItem "35"
.AddItem "36"
.AddItem "37"
.AddItem "38"
.AddItem "39"
.AddItem "40"
.AddItem "41"
.AddItem "42"
.AddItem "43"
.AddItem "44"
.AddItem "45"
.AddItem "46"
.AddItem "47"
.AddItem "48"
.AddItem "49"
.AddItem "50"
.AddItem "51"
.AddItem "52"
.AddItem "53"
.AddItem "54"
.AddItem "55"
.AddItem "56"
.AddItem "57"
.AddItem "58"
.AddItem "59"
.AddItem "60"
.AddItem "61"
.AddItem "62"
End With
With Me.txtRT
.Clear
.AddItem "Yes"
.AddItem "No"
End With
With Me.txtSSE1
.Clear
.AddItem "Yes"
.AddItem "No"
End With
With Me.txtLB
.Clear
.AddItem "1"
.AddItem "2"
End With
With Me.txtGAL
.Clear
.AddItem "Yes"
.AddItem "No"
End With
End Sub
Above is a image of what the userform menu will look like , if any additional information is needed i will do my best to provide it , thanks for any help.