+ Reply to Thread
Results 1 to 9 of 9

Replace old ticker symbols

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    BOLTON
    MS-Off Ver
    Excel 2003
    Posts
    66

    Replace old ticker symbols

    Hi

    On Excel 2000 spreadsheets
    I wish to replace about 90 old ticker symbols to the new ticker symbols on the Excel spreadsheets

    The macro below works ok.
    Changing from old ticker "0P00000CCO" to new ticker "PKACC"

    How do I copy and repeat the Macro below for
    90 different old ticker symbols to 90 different new ticker symbols

    All the old ticker symbols are in the same column

    --------------------------------------------------------------------------------------------------------------------------------

    Sub Macro1()
    '
    ' Macro1 Macro
    ' Macro recorded 08/09/2011 by
    '
    ' Keyboard Shortcut: Ctrl+Shift+Q
    '
    Cells.Find(What:="0P00000CCO", After:=ActiveCell, LookIn:=xlFormulas, _
    LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
    MatchCase:=False).Activate
    ActiveCell.Replace What:="0P00000CCO", Replacement:="PKACC", LookAt:= _
    xlPart, SearchOrder:=xlByRows, MatchCase:=False


    End Sub
    --------------------------------------------------------------------------------------------------------------------------------

    Hoping you can oblige

    Derek Worswick
    Last edited by worswick25; 09-15-2011 at 01:19 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Replace old ticker symbols

    Welcome to the forum,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-08-2011
    Location
    BOLTON
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Replace old ticker symbols

    Hi

    On Excel 2000 spreadsheets
    I wish to replace about 90 old ticker symbols to the new ticker symbols on the Excel spreadsheets

    The macro below works ok.
    Changing from old ticker "0P00000CCO" to new ticker "PKACC"

    How do I copy and repeat the Macro below for
    90 different old ticker symbols to 90 different new ticker symbols

    All the old ticker symbols are in the same column

    --------------------------------------------------------------------------------------------------------------------------------

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

    Hoping you can oblige

    Derek Worswick

  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: Replace old ticker symbols

    is there a list of old to new? post a sample workbook
    "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

  5. #5
    Registered User
    Join Date
    09-08-2011
    Location
    BOLTON
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Replace old ticker symbols

    Hi Martin,

    See attached MS Excel Spreadsheet " Find & Replace"

    I wish to Find ( search) column C ( blue back ground ) for the Old Symbols
    and and replace that symbol with the New Symbol in column F (green back ground )

    I can not use the simple copy and paste
    as the order of the Names in Column B can change from day to day.

    Kind regards,

    Derek
    Attached Files Attached Files

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

    Re: Replace old ticker symbols

    ok you have a list so do you have another big list of old?

  7. #7
    Registered User
    Join Date
    09-08-2011
    Location
    BOLTON
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Replace old ticker symbols

    Hi Martin,

    Thank you for your interest.

    Although I do not have e a bigger list

    Each day I create a new Excel file listing the new fund prices
    I name this new Excel file with the date e.g. FT110909 ( FTYYMMDD )

    The order of the fund names in column B can change from day to day

    On the Excel sheet “ FT110909 “ I wish to replace the symbols in column C light blue background
    by the symbols in Excel sheet “ Find & Replace “ column F light green background

    Would I have to give this dally Excel file a temporary name? e.g. “Daily”

    I hope that I have not created confusion by the use of terms new & old symbols

    Attached are copies of Excel files “ FT110909 ” and “ FIND & REPLACE ”

    I hope the above is understandable.

    Kind regards,

    Derek
    Attached Files Attached Files

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

    Re: Replace old ticker symbols

    id just paste the daily data into the same workbok and use a look up, you can then copy this paste special values to a new sheet to keep
    something like this
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-08-2011
    Location
    BOLTON
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Replace old ticker symbols

    Hi Martin,

    That is great... Many thanks

    Kind regards,

    Derek

+ 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