I have a macro that is assigned to a button, that when clicked, copies information from a table and places into a specific area elsewhere in my workbook. When it takes information from my table, it takes all of the information showing. The thing is, I'm supposed to filter that table down to one row of information because the area that it is supposed to paste in is only suitable for that much information. All cells around it are locked. Sooooooo....
My problem is that I sometimes will click the button before the table is narrowed down to one row of information, which brings up my debugger/end option window. I want the macro to recognize that it cannot paste into locked cells and from there i want it to cancel itself and bring up a message saying "only one row of information can be grabbed at a time." or something.
so to put it simply...
click button when too much information is showing, macro realizes it cannot paste that info into locked cells, macro cancels and tells me i'm an idiot.
Bookmarks