07-11-15 05:08 PM
09-11-15 11:38 AM
05-01-16 11:12 AM
06-11-16 06:51 PM
28-01-19 10:31 PM
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