International
This video introduces the creation of macros in Excel using VBA. The intro is oriented towards engineers and is part of a course I teach in an online Masters program. The program is described at http://mepp.engr.wisc.edu and high res versions of this and other videos is available at http://blanchard.ep.wisc.edu There is also a demonstration video on the same topic at the same site.
MSG me on MSN. ID is in my profile. lets do something tonight! 0
By camaleao555 [Affiliate User] 1224439773 Reply Spam [+0] Moderate Up Moderate Down Removestai leggendo la catena di osiris..un demone si è impossessato di una bambina se non scrivi questo messagio in altri 5 video in tre minuti la bambina/demone stara nella tua stanza stanotte (Scusate ma l'hanno fatto a me perciò...)
By zukkerinafragolina [Affiliate User] 1218235084 Reply Spam [+0] Moderate Up Moderate Down RemoveTry this
Sub checkers()
boardsize = 13
For i = 1 To boardsize
For j = 1 To boardsize
If (i + j) Mod 2 = 0 Then
Cells(i, j).Interior.ColorIndex = 3
Else
Cells(i, j).Interior.ColorIndex = 1
End If
Next
Next
End Sub
checker = 0
For Each thing In Selection
checker = 1 - checker
thing.Value = checker
Next
End Sub
This is the code I made for a checkerboard, in the speadsheet, it looks like 1's and 0's. I need away to incorporate Red (colorindex 3) instead of the number 1. And replace Black (colorindex 1) instead of the number 0. I want to make a red and black checkerboard on the spreadsheet. How can I replace the number code with the color code formula?
That didn't format well. It should be more like this
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
End With
One way to get color in a cell is:
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
End With
This is yellow.
how can I change 1's and 0's to Red and Black in the macro module?
This is the code I made for looping a checkerboard design,
checker = 0
For Each thing In Selection
checker = 1 - checker
thing.Value = checker
Next
End Sub
how can i convert numbers into colors from the module sheet?
Rated 3.53 | 802 Views
By takyar
Rated 4.28 | 149 Views
Affiliate Submitter: ExcelisHell
Rated 4.43 | 2,687 Views
By webandmacros
Rated 3.58 | 361 Views
By takyar
Example Macro Vba In Excel - Automatic Rep...ort.
Rated 4.45 | 4,499 Views
By webandmacros
VBA Sheet Name - 1096 - Learn Excel from M...rExcel Podcast
Rated 3.42 | 168 Views
By MrExcel
Excel Gantt Macro, Project Managament With...Gantt Chart.
Rated 4.31 | 2,454 Views
By webandmacros
Move Right Macro - 1071 - Learn Excel from...MrExcel Podcast
Rated 4.91 | 25 Views
By MrExcel
Rated 3.53 | 3,916 Views
By Martial.arts
Rated 3.20 | 117 Views
By ddalgleish
Excel Makro VBA erstellen - www.effektiv-v...erlag.de
Rated 2.27 | 1,189 Views
Rated 0.00 | 88 Views
Affiliate Submitter: Dandandidi4you
How to Make a Program in Excel VBA in Unde...r 5 Minutes!
Rated 4.78 | 694 Views
By AlphaHusky
VBA Popup Pictures - 1108 - Learn Excel fr...om MrExcel Podcast
Rated 4.96 | 61 Views
By MrExcel
Excel Macros Tutorial, Record & Save Macro
Rated 0.00 | 77 Views
By slembke
Generalize Recorded Macro - 1028 - Learn E...xcel from MrExcel
Rated 3.67 | 1,724 Views
By MrExcel