I have two workbooks that are structured identically. In one workbook I have no difficulty hiding a group of columns. In the other workbook I get the message ?Unable to set the Hidden property of the Range class? when I try to hide the identical columns with the identical VBA code. Here?s the code used:
What would normally trigger that message?Range("AF:AL").Columns.Hidden = True 'Hide the entry