Monday, September 10, 2012

How to Fill 56 Colors In First Column of a Sheet using VBA Macro

VBA Macro To Fill 56 Colors In First Column Of A Sheet
'Break The Loop when x=10
Sub AddColor()
Dim X As Integer
For X = 1 To 56
ActiveSheet.Cells(X, 1).Interior.ColorIndex = X
If X = 10 Then Exit For     'Loop Breaks Here
Next X
End Sub

Thanks,Tamatam

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.

Featured Post from this Blog

How to compare Current Snapshot Data with Previous Snapshot in Power BI

How to Dynamically compare two Snapshots Data in Power BI Scenario: Suppose, we have a sample Sales data, which is stored with Monthly Snaps...

Popular Posts from this Blog