I have this code and is all perfect. the only think to modify is that the group names should be the same.
After copu and paste the Group 1 and Group 2 and Group 4 names changes, is there a way so that the names don't change after copy and paste.
After copu and paste the Group 1 and Group 2 and Group 4 names changes, is there a way so that the names don't change after copy and paste.
VBA Code:
Sub Macro1()
Dim Apath As String
Dim Aname As String
Dim AbSource As Workbook
Apath = ActiveWorkbook.Path ' & "\" & "Okala RawFile Daily"
Aname = Dir(Apath & "\" & "Fixed Data.xlsx")
Windows("Okala Automation File.xlsm").Activate
ActiveWorkbook.Sheets("Region").Activate
ActiveSheet.Shapes.Range(Array("Group 1", "Group 2", "Group 4")).Select
Selection.Copy
Set AbSource = Workbooks.Open(Apath & "\" & Aname)
Windows(Aname).Activate
Sheets("Region BM").Activate
On Error Resume Next
ActiveSheet.Shapes.Range(Array("Group 1", "Group 2", "Group 4")).Select 'this name should be the same.
Selection.Delete
Range("A38").Select
ActiveSheet.Paste
End Sub