+ Reply to Thread
Results 1 to 3 of 3

If cell A1 is .....

Hybrid View

teeb If cell A1 is ..... 01-10-2007, 12:06 PM
oldchippy You need to be a bit more... 01-10-2007, 12:09 PM
Carim Hi, Sub Test() ... 01-10-2007, 12:12 PM
  1. #1
    Registered User
    Join Date
    08-16-2004
    Posts
    34

    If cell A1 is .....

    I want to create a macro that checks the value in cell A1 and if >=85% it goes to sheet2 and if <85% it goes to sheet3

    Sounds simple enough but it's beyond me.

    Thanks

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    You need to be a bit more specific, when you say if >=85% it goes to sheet2 and if <85% it goes to sheet3, what is it you want to go to sheet2 or sheet3 and where abouts you want it?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,
    Sub Test()
        Sheets("Sheet1").Select
        If Range("A1").Value >= 0.85 Then
        Sheets("Sheet2").Select
        Else
        Sheets("Sheet3").Select
        End If
    End Sub
    HTH
    Carim


    Top Excel Links

+ 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