Kind of weird issue to explain but let me try.
I created a very elegant macro that adds a total of 5 new rows, as shown below...
If I select a cell or a couple of cells and hit CTRL + C to copy, those cells get an animated dashed border around them.
Then say I don't have enough room to paste them somewhere, so I need to add some rows.
If I run my "Add5Rows" macro above while those cells are still in "copy" mode (dashed animation) it will add 4 blank rows and in the 5th row it will add that copied text value to every single column within that row.
So if the text copied was "APPLE", I get the word "APPLE" in column A B C D etc.
If I perform these steps above using CTRL + X to cut, it does something different, it pastes the value in the cell selected and adds 5 rows below it.
As I mentioned kind of a weird request because it is slightly a bug and slightly probably user error on my part for attempting this.
Not a big deal, but does anyone know of a simple fix for something like this, other than just not making the mistake of doing it?
A fix that allows me to run my macro to add 5 new rows but not paste the copied or cut value at all? Just let me perform the paste action manually myself afterwards.
This may be more of a software coded issue as opposed to something that could be fixed with a macro, but if anyone has any suggestions, please let me know.
(I am aware that I could just use something like "insert copied cells", but don't want to in certain situations)
Thank You
I created a very elegant macro that adds a total of 5 new rows, as shown below...
Code:
Sub Add5Rows()
Selection.EntireRow.Insert
Selection.EntireRow.Insert
Selection.EntireRow.Insert
Selection.EntireRow.Insert
Selection.EntireRow.Insert
End Sub
If I select a cell or a couple of cells and hit CTRL + C to copy, those cells get an animated dashed border around them.
Then say I don't have enough room to paste them somewhere, so I need to add some rows.
If I run my "Add5Rows" macro above while those cells are still in "copy" mode (dashed animation) it will add 4 blank rows and in the 5th row it will add that copied text value to every single column within that row.
So if the text copied was "APPLE", I get the word "APPLE" in column A B C D etc.
If I perform these steps above using CTRL + X to cut, it does something different, it pastes the value in the cell selected and adds 5 rows below it.
As I mentioned kind of a weird request because it is slightly a bug and slightly probably user error on my part for attempting this.
Not a big deal, but does anyone know of a simple fix for something like this, other than just not making the mistake of doing it?
A fix that allows me to run my macro to add 5 new rows but not paste the copied or cut value at all? Just let me perform the paste action manually myself afterwards.
This may be more of a software coded issue as opposed to something that could be fixed with a macro, but if anyone has any suggestions, please let me know.
(I am aware that I could just use something like "insert copied cells", but don't want to in certain situations)
Thank You
Last edited: