Introduction to Writing Excel Macros (VBA)

Tags:
Engineering Excel Macros Vba
jakeblanchard
  • Affiliate Submitter:
    jakeblanchard
  • International International
  • Comments: 0
  • Views: 728
  • Added: 14-Dec-07

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.

  1. Categories: Science & Tech
Comments on

Introduction to Writing Excel Macros (VBA)

7 Comments | Add Comment
  • MSG me on MSN. ID ...

    MSG me on MSN. ID is in my profile. lets do something tonight! 0

    By camaleao555 [Affiliate User] 1224439773 Reply Spam Moderate Up Moderate Down
  • stai leggendo la ...

    stai 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 Moderate Up Moderate Down
  • Try this Sub ...

    Try 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

    By jakeUWMadison [Affiliate User] 1206196935 Reply Spam Moderate Up Moderate Down
  • checker = 0 For ...

    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?

    By runningthunder24 [Affiliate User] 1206125983 Reply Spam Moderate Up Moderate Down
  • That didn't format ...

    That didn't format well. It should be more like this

    With Selection.Interior

    .Pattern = xlSolid

    .PatternColorIndex = xlAutomatic

    .Color = 65535

    End With

    By jakeblanchard [Affiliate User] 1206105471 Reply Spam Moderate Up Moderate Down
  • One way to get ...

    One way to get color in a cell is:

    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    End With

    This is yellow.

    By jakeblanchard [Affiliate User] 1206060189 Reply Spam Moderate Up Moderate Down
  • how can I change 1' ...

    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?

    By runningthunder24 [Affiliate User] 1206056027 Reply Spam Moderate Up Moderate Down
7 Comments | Add Comment