Gavin Harrison
New Member
- Joined
- May 2, 2017
- Messages
- 34
Hi.
Im hoping somebody can help me, I've recorded a macro to copy a range of data and paste onto a separate tab, it involves unprotecting the workbook and unhiding the tab that the data is being copied from, then hiding it again and protecting to workbook again.
The code is copied below, but isn't copying any data, but I'm not getting any error messages.
Im using Excel for Mac 2011.
Thanks in advance.
Gavin
Sub importfri()
'
' importfri Macro
ActiveWorkbook.Unprotect
Sheets("Calculations").Visible = True
Range("AZ13:BC71").Copy
Sheets("Fri").Select
Range("A12").PasteSpecial Paste:=xlValues
Sheets("Calculations").Visible = False
Sheets("Fri").Select
ActiveWorkbook.Protect Structure:=True, Windows:=False
Range("A1:G1").Select
End Sub
Im hoping somebody can help me, I've recorded a macro to copy a range of data and paste onto a separate tab, it involves unprotecting the workbook and unhiding the tab that the data is being copied from, then hiding it again and protecting to workbook again.
The code is copied below, but isn't copying any data, but I'm not getting any error messages.
Im using Excel for Mac 2011.
Thanks in advance.
Gavin
Sub importfri()
'
' importfri Macro
ActiveWorkbook.Unprotect
Sheets("Calculations").Visible = True
Range("AZ13:BC71").Copy
Sheets("Fri").Select
Range("A12").PasteSpecial Paste:=xlValues
Sheets("Calculations").Visible = False
Sheets("Fri").Select
ActiveWorkbook.Protect Structure:=True, Windows:=False
Range("A1:G1").Select
End Sub