ricardo9316
New Member
- Joined
- Apr 17, 2014
- Messages
- 22
So guys, I am trying to tell VBA to Paste Format over every column if the condition is met within the Range (C1:N1) equalizing to 1.
I've this script working for Grouping Columns in other reports but I cant figure out how to tell it to do PasteFormat instead.
Columns("Z").Select
Selection.Copy
Dim c As Range
For Each c In Range("C1:N1")
If c.Value = "1" Then c.EntireColumn.Select
Selection.Paste
Next c
I've this script working for Grouping Columns in other reports but I cant figure out how to tell it to do PasteFormat instead.
Columns("Z").Select
Selection.Copy
Dim c As Range
For Each c In Range("C1:N1")
If c.Value = "1" Then c.EntireColumn.Select
Selection.Paste
Next c