+ Reply to Thread
Results 1 to 4 of 4

Add text to cell

  1. #1
    Registered User
    Join Date
    12-08-2005
    Posts
    84

    Add text to cell

    Hiya guys and gals,

    How can I create a Macro that when i select a range of sells will add a predifined text to the end of the text already in each selected cell.

    I konw this is possible and have tried lots of variants of code, all turning out to be incorrect.

    Kind Regards

    James

  2. #2
    Bob Phillips
    Guest

    Re: Add text to cell

    Sub AddText()
    For Each cell In selection
    cell.Value = "cell.value & "more text"
    Next cell
    End SUb

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "superkopite" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hiya guys and gals,
    >
    > How can I create a Macro that when i select a range of sells will add a
    > predifined text to the end of the text already in each selected cell.
    >
    > I konw this is possible and have tried lots of variants of code, all
    > turning out to be incorrect.
    >
    > Kind Regards
    >
    > James
    >
    >
    > --
    > superkopite
    > ------------------------------------------------------------------------
    > superkopite's Profile:

    http://www.excelforum.com/member.php...o&userid=29496
    > View this thread: http://www.excelforum.com/showthread...hreadid=515405
    >




  3. #3
    Registered User
    Join Date
    12-08-2005
    Posts
    84
    Thanks a lot Bob

    There was an extra " in there but when i removed it it worked fantastically

    Cheers

    James

  4. #4
    Bob Phillips
    Guest

    Re: Add text to cell

    so there was, sorry about that.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "superkopite" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Thanks a lot Bob
    >
    > There was an extra " in there but when i removed it it worked
    > fantastically
    >
    > Cheers
    >
    > James
    >
    >
    > --
    > superkopite
    > ------------------------------------------------------------------------
    > superkopite's Profile:

    http://www.excelforum.com/member.php...o&userid=29496
    > View this thread: http://www.excelforum.com/showthread...hreadid=515405
    >




+ 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