I have a userform with a button, and when pressed it refers to a range within the workbook it is generated from. If the workbook if active, the code works fine, but if another workbook is active the code does not work.
Is there a way to set the range like i have tried below?
wbName and wsName are references to the workbook the userform is generated from.
Many Thanks![]()
Please Login or Register to view this content.
Bookmarks