Fishboy
Well-known Member
- Joined
- Feb 13, 2015
- Messages
- 4,267
Hi All,
I have been trying to give an existing Excel 2010 workbook a bit of a makeover and part of this has been replacing the standard dull message boxes with client branded userform popups instead. On the whole this has mostly been simple enough, however I have some message boxes which read data from the sheet and display it as part of the message. An example of this can be found below:
Is there a way to have the above extracted information displayed in a userform instead? An example of my customer userform looks like this:
I am looking to have the information extracted to be displayed where it currently says "Named ranges have been expanded" in the above example.
Is this something that can be done or am I barking up the wrong tree here?
I have been trying to give an existing Excel 2010 workbook a bit of a makeover and part of this has been replacing the standard dull message boxes with client branded userform popups instead. On the whole this has mostly been simple enough, however I have some message boxes which read data from the sheet and display it as part of the message. An example of this can be found below:
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set KeyCells = Range("Y5:AQ1500")
If Target.Cells.Count > 1 Then
Exit Sub
End If
If Not Application.Intersect(KeyCells, Range(Target.Address)) Is Nothing And Target.Value <> "" Then
MsgBox Worksheets("Vetting Breakdown").Range("F" & Target.Row).Value _
& " " & Worksheets("Vetting Breakdown").Range("G" & Target.Row).Value _
& " has been updated." & vbCrLf & vbCrLf & "Status of Address Check is now " _
& Worksheets("Vetting Breakdown").Range("Y" & Target.Row).Value & "." & vbCrLf _
& "Status of Referencing is now " & Worksheets("Vetting Breakdown").Range("AC" & Target.Row).Value _
& "." & vbCrLf & "Status of CRB is now " & Worksheets("Vetting Breakdown").Range("AG" & Target.Row).Value & "." _
& vbCrLf & "Status of Financial Probity is now " & Worksheets("Vetting Breakdown").Range("AK" & Target.Row).Value _
& "." & vbCrLf & "Status of Sanctions Check is now " & Worksheets("Vetting Breakdown").Range("AO" & Target.Row).Value & "."
End If
End Sub
Is there a way to have the above extracted information displayed in a userform instead? An example of my customer userform looks like this:
I am looking to have the information extracted to be displayed where it currently says "Named ranges have been expanded" in the above example.
Is this something that can be done or am I barking up the wrong tree here?