Hello,
I have a problem with referencing I think..
I have an activex command button in my spreadsheet which I want to run code...
The code runs fine if I run it from a userform.. or If I have the code in a userform.. get the command button to load the form and on form initialize the code is in there.
The only problem this way is that I can't get the form to unload itself properly once the code has ran.
If i put unload me at the end of the code I'm getting "object variable or with block variable not set" and the debug highlights my form.show code from the command button "frmirisonline.Show"
If I run all of the code straight from the command button which is what I'd like to do I get error 1004 "The worksheet range for the table data must be on the same sheet as the table being created"
the problem starts here
the code which starts with activesheet doesnt recognise Sheets("data") as the active sheet.
Bookmarks