BUCK BUCKLEY
New Member
Members
Forum Posts: 1
Member Since:
January 13, 2022
January 13, 2022
Offline
I would like to create a macro that allows me to paste values of something copied from one range to another.
The macro should paste from the clipboard any copied range from any source (another sheet or workbook) and should paste those values into (starting at) a user-selected range.
I thought this code (below) would work, but Error msg 1004 indicates that the Paste Special method of Range has failed. What can I do to make this work?
Sub PasteValue()
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
End Sub
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Riny van Eekelen, Obinna Nweke
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1917
SunnyKow: 1432
Anders Sehlstedt: 900
Purfleet: 414
Frans Visser: 346
David_Ng: 306
Hans Hallebeek: 289
lea cohen: 246
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Karen McCarron
Amanda Zibell
Kevin Sanderson
wer klaus
Richard Gower
Sanket Rathod
Tung Vo
chutima thongnan
David Ball
Ali Asghar
Forum Stats:
Groups: 3
Forums: 24
Topics: 6876
Posts: 30139
Member Stats:
Guest Posters: 49
Members: 33694
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —