+ Reply to Thread
Results 1 to 4 of 4

VBA Sorting moving cell names

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Springfield, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    VBA Sorting moving cell names

    Hi, I'm looking to sort data in excel vba, I have a method that work (see below), but I noticed that it doesn't move the cell names, because I rely heavily on cell names, I need to be able to move them with the sort. Is there a way to do this?
    Thanks

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: VBA Sorting moving cell names

    Cell names are designed to work on the location, and not the data in the cell. When you sort, you are moving the data, not the cells - that is why it doesn't work. I don't understand why you would want the cell name to move. If you could explain that, it may prompt a different solution
    My approach to providing help is to help you to help yourself. So my answers won't always solve your problem, but hopefully you can learn enough to solve the problem yourself and be more self sufficient for the experience.

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    Springfield, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: VBA Sorting moving cell names

    I'm working on an inventory list for machine fixtures. some of the fixtures have identical parts (say 5/16-18UNC x 1" socket head screw) when this happens I want the quantities to update in the different fixtures (so you can update any one, and the numbers for the identical parts will update The sheet needs to be dynamic because we are constantly getting new fixtures, and getting rid of old ones. I use the cell names, in the intersect function so that when a new fixtures is added (fixtures each have multiple rows) the cell name moves with it, and the intersect function always has the right cells. I have a worksheet that acts as a search tab. once it pulls up the info for a fixture, the user can sort the spare parts by part name, or a couple of other criteria. basically the cell names have to move, so the intersect functions don't get messed up. This is hard to explain.

  4. #4
    Registered User
    Join Date
    06-05-2013
    Location
    Springfield, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: VBA Sorting moving cell names

    I understand that a basic sort doesn't work for the above mentioned reasons. I have had success with a while not loop and cut paste. But this time I'm working with words not numbers.

+ 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. Replies: 0
    Last Post: 05-21-2012, 06:59 AM
  2. Sorting,Suming, Moving
    By Gawdwin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2008, 04:52 PM
  3. Moving Cell Reference after Sorting
    By [email protected] in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-11-2006, 07:15 PM
  4. Sorting/Moving
    By koba in forum Excel General
    Replies: 3
    Last Post: 02-21-2006, 11:10 PM
  5. Replies: 3
    Last Post: 05-11-2005, 04:06 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