+ Reply to Thread
Results 1 to 5 of 5

Creating an auto sort without enabling Macros

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    5

    Creating an auto sort without enabling Macros

    Hi All,

    I am trying to create an auto sort for my worksheet. Another user was kind enough to create the macros formula for me pasted at the bottom of this post. His macros formula did exactly what I wanted it to do. The problem is that I am trying to share this document in Microsoft Skydrive, or Google Docs, or some other cloud-based sharing platform, and neither Skydrive nor Google Docs will allow me to open a macros enabled document. The problem I was initially trying to solve was:

    As each person on my team makes modifications to a row on this sheet, they will also change Column A to the number assigned to the person responsible for the next step of the process. Each time any entry in Column A is is changed, I would like the whole sheet to sort automatically (least to greatest or vice versa, it does not matter) The idea is that all projects waiting on input from each person will be grouped together automatically so each person can easily see where their time needs to be spent. The information in each row is tied together and must be kept together, and when all data is input, there will be about 130 rows.

    Thank you for your help!

    Previous Macros developed:

    Private Sub Worksheet_Change(ByVal Target As Range)
    'Do nothing if more than one cell is changed or content deleted
    If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
    If Target.Column = "1" Then

    If IsNumeric(Target) Then
    'Stop any possible runtime errors and halting code
    On Error Resume Next
    Application.EnableEvents = False
    Range("A2").Select
    ''' Recorded Macro '''
    ActiveWorkbook.Worksheets("BMR Export").Sort.SortFields.Add Key:=Range("A2") _
    , SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
    With ActiveWorkbook.Worksheets("BMR Export").Sort
    .SetRange Range("A2:AR12")
    .Header = xlNo
    .MatchCase = False
    .Orientation = xlTopToBottom
    .SortMethod = xlPinYin
    .Apply
    End With
    Application.EnableEvents = True
    On Error GoTo 0
    End If
    End If
    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Creating an auto sort without enabling Macros

    you cant guarantee that something written in excel will work in google docs. why not get someone to do this for you in google docs?
    http://www.excelforum.com/for-other-...mobile-os-etc/
    oh and please use code tags around your code
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-02-2013
    Location
    Washington
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Creating an auto sort without enabling Macros

    Hello Martin,

    Thank you for your reply. I apologize for my code formatting, this was actually my first piece of code and it was developed by another user, not myself, and I'm not sure what code tags are.

    Are you suggesting that this would not be possible in Microsoft Skydrive? My preference would be to use skydrive, but I would be happy using any platform if I could get everything to work.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Creating an auto sort without enabling Macros


  5. #5
    Registered User
    Join Date
    07-29-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel
    Posts
    10

    Cool Re: Creating an auto sort without enabling Macros

    Sure ,I can do it for you without code or macros. Do you still need it?

+ 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