Hi.
I have two vba codes where i unhide columns and other one ungroups. Is there anyway to combine these codes.
I have two vba codes where i unhide columns and other one ungroups. Is there anyway to combine these codes.
VBA Code:
Sub Ungroup()
Application.ScreenUpdating = False
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ActiveWorkbook
Set ws = Sheets("Summary by L5")
wb.Activate
ws.Select
ws.Columns("A:GK").Columns.Ungroup
Application.ScreenUpdating = True
End Sub
Sub Unhide()
Application.ScreenUpdating = False
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ActiveWorkbook
Set ws = Sheets("Summary by L5")
wb.Activate
ws.Select
ws.Columns("A:GK").Hidden = False
Application.ScreenUpdating = True
End Sub