+ Reply to Thread
Results 1 to 6 of 6

Sorting Pattern

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Is there any macro?

  2. #2
    Forum Contributor
    Join Date
    11-23-2005
    Location
    Perth, Australia
    Posts
    218

    Sorting Pattern

    Please read the rules, crosst posting not allowed unless you provide the links.

    Cross posted on ozgrid:

    http://www.ozgrid.com/forum/showthread.php?t=73409

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by seanyeap
    Is there any macro?
    firstly, don't forget to amend your original post to include a reference to any other forum you have posted this question to.

    A macro
     Sub Macro1()
    '
    Dim I As Long, iLastRow As Long
    iLastRow = ActiveSheet.Range("A65536").End(xlUp).Row
    For I = 1 To iLastRow
        If Cells(I, 8).Interior.Pattern = xlGray16 Then
            Cells(I, 9).Value = 2
            Else: Cells(I, 9).Value = ""
            End If
        Next
    End Sub
    would do that.

    ---
    Si fractum non sit, noli id reficere.

  4. #4
    Valued Forum Contributor
    Join Date
    01-02-2004
    Location
    malaysia
    Posts
    342
    Hi Bryan Hessey,
    I am really thankful for your help

+ 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