+ Reply to Thread
Results 1 to 3 of 3

Macro to convert decimals into slashes in Column A

  1. #1
    Registered User
    Join Date
    06-05-2009
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Macro to convert decimals into slashes in Column A

    Hi, I am looking for a simple macro to convert the decimals in colum A to forward slashes.

    eg) 2008.08.08 would be converted to 2008/08/08

    Any help would be greatly appreciated..thanks
    Last edited by wowzers; 06-23-2012 at 03:25 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to convert decimals into slashes in Column A

    1) Turn on the macro recorder, give the new macro a useful name before pressing OK
    2) Highlight column A
    3) Press CTRL-H to open the REPLACE window
    4) Fill in the FIND and REPLACE strings and click Replace All
    5) Turn off the macro recorder


    You now have a macro that accompishes that for you on column A only.

    If you want to create a macro that accomplishes that on ANY column you select, then swap instructions 1 & 2 above. The resulting macro would work on any selected column since you didn't record the "selection".
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-05-2009
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: Macro to convert decimals into slashes in Column A

    WOW, awesome. Thankyou for the exceptional response

+ 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