Thread: [Solved] VBA - Hide Column
View Single Post
 
Old 05-25-2021, 11:45 AM
michissimo michissimo is offline Windows 10 Office 2019
Novice
 
Join Date: Oct 2017
Posts: 10
michissimo is on a distinguished road
Default VBA - Hide Column

Hey,


I'm trying to create a really easy VBA script for hiding the column from E to H.
When I run the code all the Column from A to I are hidden. I don't understand why! Can someone help me?



Thanks in forward



Code:
Sub Macro3()

    Columns("E:H").Select
    Selection.EntireColumn.Hidden = True
    Range("F3").Select
    
    
End Sub
Reply With Quote