Hi, I've got to make maintenance of one of my workbooks easier for someone else to do whilst if on my holidays
Currently I have a 'Helper' sheets that contains a small table range B2029 with Locations in B20 to B29, Manager Names in C20:C29 and the Manager email address in D2029.
This data is used within an email routine, so I regularly have to update that list while Managers go on secondment or move on within the organization. This is no bother for me to manually update the Helper sheet, however I want to make is easier for anyone not that familiar with the way my workbook is designed can update the list with confidence.
So I have built a Userform that has a ComboBox CboLoc with the range B20:B29, Textbox TbName and TextBox TbEmail
I can choose from CboLoc, but would like the new value in TbName to update the relevant cell in C20:C29 and the new value in TbEmail to update the relevant cell in D2029.
So If I choose the value 'South' from the ComboBox, and type a new name and new emais details in to the text boxes.
Then if cell B25 contains 'South', I want the value in TbName to replace whats already in C25 and so on for D25 for the email address.
so far I've got..
However this just amends the range C20:C29 into the Values of 'False' not sure where I'm going wrong?
Currently I have a 'Helper' sheets that contains a small table range B2029 with Locations in B20 to B29, Manager Names in C20:C29 and the Manager email address in D2029.
This data is used within an email routine, so I regularly have to update that list while Managers go on secondment or move on within the organization. This is no bother for me to manually update the Helper sheet, however I want to make is easier for anyone not that familiar with the way my workbook is designed can update the list with confidence.
So I have built a Userform that has a ComboBox CboLoc with the range B20:B29, Textbox TbName and TextBox TbEmail
I can choose from CboLoc, but would like the new value in TbName to update the relevant cell in C20:C29 and the new value in TbEmail to update the relevant cell in D2029.
So If I choose the value 'South' from the ComboBox, and type a new name and new emais details in to the text boxes.
Then if cell B25 contains 'South', I want the value in TbName to replace whats already in C25 and so on for D25 for the email address.
so far I've got..
Code:
Private Sub CmdAmend_Click()
Dim MLoc as Range
Set MLoc = Sheets("Helper").Range("B20:B29").Find(What:=Me.CboLoc.Value
Range("C20:C29")=MLoc.Offset(0,1).Value = Me.TbName
End Sub
However this just amends the range C20:C29 into the Values of 'False' not sure where I'm going wrong?