Hi all
No doubt an easy fix to this. I have the following code whereby i'm trying to split a two word string into just the last word. The string originates from a combobox selection:
The error I get is "run time error 1004 method range of object global failed". The 'Coat' string returns a named range within the worksheet if that has any bearing?
Kind regards
No doubt an easy fix to this. I have the following code whereby i'm trying to split a two word string into just the last word. The string originates from a combobox selection:
Code:
Private Sub FamilyCombo_Change()
Dim Coat As String
Dim Coaty As String
Coat = FamilyCombo
Coaty = Split(Range(Coat).Value)
Me.CoatingCombo.List = Range(Coaty).Value
End Sub
The error I get is "run time error 1004 method range of object global failed". The 'Coat' string returns a named range within the worksheet if that has any bearing?
Kind regards