I have created a template with a macro with keystrokes. I want to use this so at any time I can run a report, then copy/paste that information into my template and run a macro.
What I do is paste information from the spreadsheet into my template and what the macro does is filter by column O then by column P to show a result of zero in the P column.
While recording keystrokes, I highlight the first row at the top (leaving the headers) (which in my case the first visible filtered row is 40) and press CTRL+SHIFT+FN+END to highlight everything on the spreadsheet that is visible. Then I right-click and DELETE to get rid of the filtered info.
I then unfilter P then O to bring up the rest of the information on the spreadsheet.
When I run the same template and macro but with different spreadsheet information (headers in both sheets are the same) I seem to get different results. I am wondering if the macro I created is remembering specific things from the original spreadsheet I used to create the macro. For example, above I mentioned I clicked on the first row which was row 40 ….. each time I use the macro for different sheets is the macro going to remember that I clicked on line 40 or that I clicked on the second row from the top?
Bookmarks