Does your code error out on this line?
I've looked at your workbook and there is no sheet named "my worksheet"height = Worksheets("myworksheet").UsedRange.Rows.Count
Does your code error out on this line?
I've looked at your workbook and there is no sheet named "my worksheet"height = Worksheets("myworksheet").UsedRange.Rows.Count
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link