I have set up a worksheet that has activex clickbuttons to insert some values into the criteria cells before I do a filter and then run a couple of macros. This works well with everything on a sheet named "dataextract", but I want to move the buttons or place new buttons on another sheet called "graph". The code that I use and works fine from the dataextract sheet is
I then have other buttons with different values to copy to the two named cells crit1 and crit2 and run the 2 macros using basically the same scripts.Please Login or Register to view this content.
However if I create a new button on the graph sheet with the same code it fails at the first step and gives a run time error 1004. I think that I have a basic problem addressing the cells on the dataextract sheet but can't seem to work out the correct format. any advice would be welcome.
Bookmarks