+ Reply to Thread
Results 1 to 3 of 3

Copying Text from 1 cell and inserting into the text of another

  1. #1
    Registered User
    Join Date
    08-05-2008
    Location
    Edinburgh
    Posts
    15

    Copying Text from 1 cell and inserting into the text of another

    Hi,

    I am creating a file for mailmerge purposes and I'm hoping this will save a lot of typing.

    I have a column of file names and then in the adjacent column I want to have where the file is located so that they file can be sent as an attachment through Word mailmerge.

    EG:

    File Location
    ADD10001 C:\my documents\ADD10001.doc
    ADD10002 C:\my documents\ADD10002.doc

    I can't just drag the column down like when I created the file names to continue the sequence because of the .doc at the end.

    Is there a way that I can have the location column pull the info from the file column into the correct area - C:\my documents\"A2".doc (I know that doesn't work but it was to give an idea)

    Hope someone can help as at the moment I have had to resort to typing .doc at the end of each line (and I'm hoping to be able to do this for around 400 records!)

    Derek
    Last edited by brandnewday10; 04-19-2011 at 05:20 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Copying Text from 1 cell and inserting into the text of another

    Like this:

    ="C:\my documents\"&A2&".doc"

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    08-05-2008
    Location
    Edinburgh
    Posts
    15

    Re: Copying Text from 1 cell and inserting into the text of another

    Perfect, thank you!

+ 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