+ Reply to Thread
Results 1 to 3 of 3

How do I create a macro to put "-" between existing numbers?

  1. #1
    Steverino
    Guest

    How do I create a macro to put "-" between existing numbers?

    I have a spreadsheet containing Social Security numbers. All need to be in
    the format ###-##-####. How do I create a macro to do this on a cell that
    has the format #########?

    So far what I get is that the macro changes the SS# to be the same as the
    one I changed when creating the macrol.

  2. #2
    Jim Thomlinson
    Guest

    RE: How do I create a macro to put "-" between existing numbers?

    Why not just do it with a custom format. Select the area you want to modify
    and right click. Choose Format Cells. Choose Custom. Type in 000-00-0000...
    --
    HTH...

    Jim Thomlinson


    "Steverino" wrote:

    > I have a spreadsheet containing Social Security numbers. All need to be in
    > the format ###-##-####. How do I create a macro to do this on a cell that
    > has the format #########?
    >
    > So far what I get is that the macro changes the SS# to be the same as the
    > one I changed when creating the macrol.


  3. #3
    Steverino
    Guest

    RE: How do I create a macro to put "-" between existing numbers?

    Thanks for the help. However, I am creating a spreadsheet to use as an
    import to setup a database. I therefore actually need to insert the dashes.

    "Jim Thomlinson" wrote:

    > Why not just do it with a custom format. Select the area you want to modify
    > and right click. Choose Format Cells. Choose Custom. Type in 000-00-0000...
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "Steverino" wrote:
    >
    > > I have a spreadsheet containing Social Security numbers. All need to be in
    > > the format ###-##-####. How do I create a macro to do this on a cell that
    > > has the format #########?
    > >
    > > So far what I get is that the macro changes the SS# to be the same as the
    > > one I changed when creating the macrol.


+ 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