+ Reply to Thread
Results 1 to 4 of 4

Cell color changing

  1. #1
    Registered User
    Join Date
    11-30-2006
    Location
    MD, USA
    Posts
    1

    Cool Cell color changing

    Hey all,

    I'm not the most experienced at programming beyond the basics. How would I code, using a command button, changing the color of cells. I've gotten it to work in macro form but it seems to crash writing it into a command button statement. Thanks.

  2. #2
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    maybe post the code you have working with the macro and explain what exactly you'd like done when the command button is pressed

    i.e. change cell d7 to green if c3=true
    --Mark

    Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

  3. #3
    Registered User
    Join Date
    07-15-2006
    Posts
    13
    Hi Mark,

    I'm trying to learn about Events macros so that I can use one in a spreadsheet I'm building, but the problem is more fundamental than actually trying to achieve a specific event. I copied and pasted this macro from a web site:

    Private Sub Worksheet_Change(ByVal Target As Range)
    MsgBox "You just changed " & Target.Address
    End Sub

    but I cannot get it run. I've tried others, and they work a few times and then pack up.

    Now you cannot get more basic than that little bit of code, can you? So as I say, they problem is not in the code itself.

    Why should they run a few times, and then stop?

  4. #4
    Registered User
    Join Date
    07-15-2006
    Posts
    13
    ...and I've just realised what I've done! Sorry!

    The wife came in and distracted me. That's my excuse.

    Don't y'all go off thinking " Well if he can't even read a forum correctly, how does he expecvt to run a macro?"

    (Although I'd understand it if you did)



    And sorry for disturbing your thread jjjjj)
    Last edited by nomadscot; 11-30-2006 at 06:13 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1