Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default Visual Basic Problem (Excel)

    I currently have the following code

    Code:
        Sheets("StaffData").Select
        d = Cells(1, 4)
        If d = Monday Then
        Range("C5").Select
        ElseIf d = Tuesday Then
        Range("E5").Select
        ElseIf d = Wednesday Then
        Range("G5").Select
        ElseIf d = Thursday Then
        Range("I5").Select
        ElseIf d = Friday Then
        Range("K5").Select
        Else
        Range("B1").Select
        End If
    The only problem is it returns to C5 no matter what the value of d is

    Any Ideas?


  2. #2
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    try..

    Code:
    Sheets("StaffData").Select
        d = Cells(1, 4)
        If d = "Monday" Then
        Range("C5").Select
        ElseIf d = "Tuesday" Then
        Range("E5").Select
        ElseIf d = "Wednesday" Then
        Range("G5").Select
        ElseIf d = "Thursday" Then
        Range("I5").Select
        ElseIf d = "Friday" Then
        Range("K5").Select
        Else
        Range("B1").Select
        End If
    Coming and going...
    Highers are getting the better of me

Posting Permissions

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