From horizontal to vertical.
Sub Button83_Click()
ActiveSheet.Unprotect ""
Sheets("Output").Range("C4:O129").ClearContents
Sheets("Database").Range("A7:B200,AF7:AK200,AN7:AO200,AR7:AS200,AV7:AV200").SpecialCells(xlCellTypeVisible).Copy Sheets("Output").Range("C4")
Sheets("Database").Range("C7:AE200").SpecialCells(xlCellTypeVisible).Value = ("X")
Range("C6:AE6").Copy Sheets("Output").Range("C504")
ActiveSheet.Protect ""
End Sub
Sub Button83_Click()
ActiveSheet.Unprotect ""
Sheets("Output").Range("C4:O129").ClearContents
Sheets("Database").Range("A7:B200,AF7:AK200,AN7:AO200,AR7:AS200,AV7:AV200").SpecialCells(xlCellTypeVisible).Copy Sheets("Output").Range("C4")
Sheets("Database").Range("C7:AE200").SpecialCells(xlCellTypeVisible).Value = ("X")
Range("C6:AE6").Copy Sheets("Output").Range("C504")
ActiveSheet.Protect ""
End Sub