+ Reply to Thread
Results 1 to 2 of 2

Macro to add text in Cell

Hybrid View

herve Macro to add text in Cell 10-06-2005, 08:01 AM
Guest Re: Macro to add text in Cell 10-06-2005, 09:05 AM
  1. #1
    Registered User
    Join Date
    09-16-2005
    Posts
    32

    Macro to add text in Cell

    Hello,
    In an Excel File, Sheet1, I have a text in Cell C11 to C200.
    Does Anyone know a macro to Add "tititi" at the biginning of the text in these cells (C11 to C200)
    Ex: In Cell C11 I have "QWERTY" and I want "tititiQWERTY"
    In Cell C12 I have "AZERTY" and I want "tititiAZERTY"
    Regards
    H.

  2. #2
    Tom Ogilvy
    Guest

    Re: Macro to add text in Cell

    Sub AddPrefix()
    Dim cell as Range
    for each cell in range("C11:C200")
    cell.value = "tititi" & cell.value
    Next
    End Sub

    --
    Regards,
    Tom Ogilvy

    "herve" <herve.1whbyg_1128600309.9941@excelforum-nospam.com> wrote in
    message news:herve.1whbyg_1128600309.9941@excelforum-nospam.com...
    >
    > Hello,
    > In an Excel File, Sheet1, I have a text in Cell C11 to C200.
    > Does Anyone know a macro to Add "tititi" at the biginning of the text
    > in these cells (C11 to C200)
    > Ex: In Cell C11 I have "QWERTY" and I want "tititiQWERTY"
    > In Cell C12 I have "AZERTY" and I want "tititiAZERTY"
    > Regards
    > H.
    >
    >
    > --
    > herve
    > ------------------------------------------------------------------------
    > herve's Profile:

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




+ 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