Question : Error in userform

Hi,

The following code worked fine until I made some changes in another module and now i get an error  on "If Me.Rack = 1 Then".   "Invalid use of Me keyword."
Me.Rack is a combobox on a userform.

    Dim  wsn As Worksheet
    Dim rangeT As Range
    Set wsn = ThisWorkbook.Worksheets("container")
    If code = 20 Then
        If Me.Rack = 1 Then
            Set rangeT = wsn.Range("A5")
        End If

Tx

Answer : Error in userform

Then you can't use the "Me" keyword. Replace "Me" with the name of the userform.

Wayne
Random Solutions  
 
programming4us programming4us