MS Excel VBO - Pasting Data From once Workbook to another Workbook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-11-15 05:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-11-15 11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-01-16 11:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-11-16 06:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-01-19 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-19 08:39 PM
If you want a solution that'll also work across handles, copy and modify the action ""Copy and Paste Worksheet Range"" and just remove the destination variables, along with anything trying to paste. You can then make a paste action using PasteSpecial. Should look something like this.
Inputs:
Handle - Number
Workbook - Text
Paste Option - Number (-4163 for values only, -4104 for all data)
Outputs:
Success - Flag
Message - Text
Dim wb, excel, range As Object Try wb = GetWorkbook(Handle, Workbook) excel = wb.Application range = excel.Selection range.PasteSpecial(Paste:=Paste_Option, Operation:=-4142, SkipBlanks:=False, Transpose:=False) Success = True Catch e As Exception Success = False Message = e.Message Finally wb = Nothing range = Nothing End Try
