BrotherLouis
New Member
- Joined
- Dec 5, 2018
- Messages
- 5
Hi
I have the code below in Office 365. The issue that I have are that it didn't want to copy the format correct, even if I add
the following code.
If I run this code through Excel 2013 it works perfectly
I have the code below in Office 365. The issue that I have are that it didn't want to copy the format correct, even if I add
the following code.
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
:=False, Transpose:=False
If I run this code through Excel 2013 it works perfectly
Code:
Sub Acctech_Timesheet()
'
' Acctech_Timesheet Macro
'
'
Sheets("Acctech Timesheet").Select
' ActiveSheet.Buttons.Add(1030.5, 36, 120.75, 33.75).Select
Sheets("Acctech Timesheet").Copy
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("A2").Select
ActiveSheet.Shapes.Range(Array("Button 1")).Select
Selection.Delete
' Selection.Cut
' The code below is to delete the columns to the right of the timesheet: comments etc
Columns("N:S").Select
Selection.Delete Shift:=xlToLeft
Range("H19").Select
Selection.End(xlDown).Select
Range("I22").Select
Selection.End(xlDown).Select
Range("H49").Select
Range(Selection, Selection.End(xlUp)).Select
Range("H26:J49").Select
Range("H49").Activate
Selection.EntireRow.Delete
Range("C11").Select
Range("A2").Select
End Sub
Last edited by a moderator: