I am getting and error:
Run Time Error Permission Denied
This was working now it stopped all of a sudden.
Thanks in advance for any help.
Run Time Error Permission Denied
This was working now it stopped all of a sudden.
Thanks in advance for any help.
VBA Code:
Private Sub userform_initialize()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("cmast")
lastrow = ws.Range("a" & Rows.Count).End(xlUp).Row
For i = 2 To lastrow
Me.cuname.AddItem ws.Cells(i, 1)
Next i
End Sub