+ Reply to Thread
Results 1 to 7 of 7

change name to suit other column

  1. #1
    Registered User
    Join Date
    06-02-2010
    Location
    n.ireland
    MS-Off Ver
    Excel 2007
    Posts
    91

    change name to suit other column

    Hello,

    If i have names in columns O1,S1,W1,AA1,AE1,AI1 etc.
    I also have the same names in column B with a value in Column C when the value in C changes i have a macro to update and sort the names and values from largest to lowest.
    This all works fine.

    But i just can't get when i change a name in either of the column headers O1,S1,W1 etc
    i want the names in Column B to also change automatically.

    I would upload a sample but when i try to, it fails to upload.

    Any help would be appreciated.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: change name to suit other column

    Show your macro code as it stands now. Remember to use CODE tags when pasting code. See my signature block below.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    06-02-2010
    Location
    n.ireland
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: change name to suit other column

    Please Login or Register  to view this content.
    This works for when i do change the names in header columns but where do i put it.
    i placed it in worksheet_change but it upsets the sort macro,and unsorts everything.
    I am no expert just a tryer.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: change name to suit other column

    Quote Originally Posted by dealer View Post
    [CODE]

    This works for when i do change the names in header columns but where do i put it.
    i placed it in worksheet_change but it upsets the sort macro,and unsorts everything.
    I am no expert just a tryer.
    You want to integrate this with the worksheet_change procedure? If yes, then show the code for that procedure as well.

  5. #5
    Registered User
    Join Date
    06-02-2010
    Location
    n.ireland
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: change name to suit other column

    Please Login or Register  to view this content.
    This is what i am using to sort the sheet.

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: change name to suit other column

    I guess I don't follow what you want done?

  7. #7
    Registered User
    Join Date
    06-02-2010
    Location
    n.ireland
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: change name to suit other column

    Yes i guess it is a bit of a mess.

    Jut want to change name in one Header column and it reflects in column B.

+ 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. Need to modify this formula to suit new date format
    By zicitron in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-19-2013, 08:30 AM
  2. Suit function to insert desired value
    By dreammaker in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-15-2013, 09:35 AM
  3. macro to suit
    By stevecontracts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2008, 07:48 AM
  4. [SOLVED] Fixing VBA code to better suit concatenating needs!!
    By Sandwiches2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2006, 10:35 PM

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