+ Reply to Thread
Results 1 to 2 of 2

Copy part of a cell to 2nd workbook

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    MIlwaukee, WI
    MS-Off Ver
    Excel 2003
    Posts
    1

    Copy part of a cell to 2nd workbook

    I'm having issues copying part of a cell in VB. I can do a copy but can’t figure out how to modify the string value prior to paste in new cell.

    Here's what I'm trying to do -

    Workbook1.Sheet1.CellC45 = John Doe

    I'd like to copy just the last name to a new cell in a different workbook

    Workbook2.Sheet1.CellE2 = Doe

    Also have to make sure I'm only getting the last word in the original cell as in John Quincy Adams = Adams

    Any help would be greatly appreciated!!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,933

    Re: Copy part of a cell to 2nd workbook

    Try the InStrRev fn:
    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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