Hello there,
I am trying to assign a range of cells that is the same in all the Worksheets. I already created a Worksheet type variable called "sht" that was declared in the "CycleTimeApp" Userform, but
the "Run-time error '91': Object Variable or With block variable not set" was showed. I share the part of the code with the problem:

Private Sub UserForm_Initialize()

ListBox1.RowSource = CycleTimeApp.sht.Range("W2:W42").Address

End Sub

I'll appreciate any help.