Hello,
I am trying to make a VBA code to Copy and Paste particular worksheet range AS VALUES. Does anyone have that kind of code stage/action created?
Appreciate!
e.g as Copy Paste with All Formats code:
Dim wb, ws As Object
Dim excel, sheet, range,PasteRange As Object
Try
wb = GetWorkbook(Handle, Workbook)
ws = GetWorksheet(Handle, Workbook, Worksheet)
wb.Activate()
ws.Activate()
excel = ws.Application
sheet = excel.ActiveSheet
range = sheet.Range(CopyCellReference)
range.Select()
range.Copy
PasteRange=sheet.Range(PasteCellReference)
PasteRange.Select()
sheet.Paste
Success = True
Catch e As Exception
Success = False
Message = e.Message
Finally
wb = Nothing
ws = Nothing
excel = Nothing
sheet = Nothing
range = Nothing
End Try
I am trying to make a VBA code to Copy and Paste particular worksheet range AS VALUES. Does anyone have that kind of code stage/action created?
Appreciate!
e.g as Copy Paste with All Formats code:
Dim wb, ws As Object
Dim excel, sheet, range,PasteRange As Object
Try
wb = GetWorkbook(Handle, Workbook)
ws = GetWorksheet(Handle, Workbook, Worksheet)
wb.Activate()
ws.Activate()
excel = ws.Application
sheet = excel.ActiveSheet
range = sheet.Range(CopyCellReference)
range.Select()
range.Copy
PasteRange=sheet.Range(PasteCellReference)
PasteRange.Select()
sheet.Paste
Success = True
Catch e As Exception
Success = False
Message = e.Message
Finally
wb = Nothing
ws = Nothing
excel = Nothing
sheet = Nothing
range = Nothing
End Try