Hi,
I am new and have self learnt VBA from the internet, hence getting stuck at a basic issue. I tried my best to google the solution- but failed.
My code:
Selection.Copy
Sheets("A").Select
Cells(b, c).Select
ActiveSheet.Paste
Sheets("B").Select
Cells(b, c).Select
ActiveSheet.Paste
So it is copying perfectly, pasting it fine in Sheet A, after that for some reason the clipboard is getting cleared and I am getting Run-time Error 1004 once it reaches Sheet B..
Basically I am trying to do Ctrl C followed by Ctrl V, for multiple pasting, however it is doing Ctrl C followed by Enter.
Please advise.
I am using Office Professional 2016.
I am new and have self learnt VBA from the internet, hence getting stuck at a basic issue. I tried my best to google the solution- but failed.
My code:
Selection.Copy
Sheets("A").Select
Cells(b, c).Select
ActiveSheet.Paste
Sheets("B").Select
Cells(b, c).Select
ActiveSheet.Paste
So it is copying perfectly, pasting it fine in Sheet A, after that for some reason the clipboard is getting cleared and I am getting Run-time Error 1004 once it reaches Sheet B..
Basically I am trying to do Ctrl C followed by Ctrl V, for multiple pasting, however it is doing Ctrl C followed by Enter.
Please advise.
I am using Office Professional 2016.