Just had a great idea for a macro for something that always bugged me. When you paste a range over a filtered table, it will paste into the hidden rows. Why not VBA that away?
What's the name of the paste buffer (the excel "clipboard") when you're copying a range versus copying inside a cell? If I know the name, I think i can work with this directly in VBA or do more research.
I got the following code to work. This helps because I don't want the macro to select the range to copy. I want the person to have already selected it.
(I don't want to paste special. I just want to paste but there is no method in intellisense. pastevalues is fine for now)Please Login or Register to view this content.
if I know the name of the "copy buffer object", I can see if it's a collection or list or if it can be parsed or split. Once it is split into a list, I can iterate through it and I think I can handle it there. I can just check for the visibility properties of rows. We'll cross that bridge when we get to it.
(There's surprisingly little written about the two types of copy and paste in excel and the underlying mechanics. I don't meant the types of paste special. I mean copying a range vs copying in a cell.)
Bookmarks