+ Reply to Thread
Results 1 to 4 of 4

Function to Sort a Sheet w/o selecting not working

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Function to Sort a Sheet w/o selecting not working

    My Function works but only if I select the sheet first, how do I fix the code to run w/o selecting the sheet?

    Thank you


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Function to Sort a Sheet w/o selecting not working

    Hi, capson,

    isnīt there a dot missing before Key1?
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Function to Sort a Sheet w/o selecting not working

    Hello HaHoBe, I could not get it to work even with the dot with out rewriting it to the following

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: Function to Sort a Sheet w/o selecting not working

    Hi, capson,

    you should consider to mark the thread as Solved via Thread-Tools over the opening post.

    I put the following codes into a standard module and they worked fine for me (Win 8.1, Excel2013):
    Please Login or Register  to view this content.
    I started the procedure from the VBE using F8 to single step.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sort function not working properly...
    By dllivermore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-01-2012, 05:45 PM
  2. Excel 2007 - Moving to/ selecting next cell in filtered sheet is not working.
    By MarMo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2012, 03:53 AM
  3. Protect sheet function is not working
    By ebe in forum Excel General
    Replies: 3
    Last Post: 08-11-2010, 12:04 PM
  4. Function to Deselect after selecting range for sort
    By Patchworks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2009, 12:47 AM
  5. How sort my working sheet not the main sheet?
    By HotRod in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2005, 04:05 PM

Tags for this Thread

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