+ Reply to Thread
Results 1 to 2 of 2

Basic Find, Replace and Format change macro

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    1

    Basic Find, Replace and Format change macro

    Hi,

    I am just learning how to write macros and need some help. Here is what i need:
    -I need the macro to only search within column "B"
    -There is both a date and time within the cell, the time is always " 00:00:00" and I need it to be replaced with blank/ ""
    - The date is represented "1/1/2013" and i need the "/" to be turned into "-"
    - and i need the number format to be changed to a custom format of "m-d-yyyy"

    if anyone can help with any part of it I would really appreicate it.

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Basic Find, Replace and Format change macro

    Hi cmphibbs

    Welcome to the forum.

    Why do you need a macro to do this? If you go to number format and select custom, type in m-d-yyyy it should achieve what you want without the bother of a macro.

    If you really want a macro, the you could start by recording the steps outlined above.

    Let me know if I can assist further.

    Regards
    Alastair

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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