azref
06-26-2010, 05:33 PM
I am using an excel userform to enter employee information into a worksheet. On this form I have a button that will hide the current form then open a second userform which will display information from the worksheet into a spreadsheet control on the second userform. The problem is that I can’t find a way to get the data from the worksheet to paste into the spreadsheet on the second userform.
Everything I have tried results in - Run-time error ‘91”: Object variable or With block variable not set.
It seems that vb does not recognize this as a spreadsheet. What do I need to do to be able to insert the data from the worksheet?
Everything I have tried results in - Run-time error ‘91”: Object variable or With block variable not set.
It seems that vb does not recognize this as a spreadsheet. What do I need to do to be able to insert the data from the worksheet?