+ Reply to Thread
Results 1 to 6 of 6

Macro to combine two cells into one

  1. #1
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    Macro to combine two cells into one

    Hello: How could I combine cell H8 and E10 from the cost accounting Sheet to the Data sheet into one cell from D3 to D13. The code below only pastes E10 into the D3 to D13 range

    H8=Name
    E10= Address

    D3=Name/Address


    Please Login or Register  to view this content.
    Thanks
    Last edited by rlsublime; 12-10-2011 at 02:10 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro to combine two cells into one

    What do you mean "combine into one cell"? or "one cell from D3 to D13"?
    Could you give an example of what is in H8 and H10 and what you want in D3:D13 as a result of that?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    Re: Macro to combine two cells into one

    On the Cost Accounting Sheet H8= Name and E10= Address

    Sure. On the Data Sheet D3 = Name & Address

    I am trying to get H8 and E10 into D3

    Then I just want the same data in D3 to repeat into D4:D13. we could even forget about D4:D13 for now. Thanks for the help!

    So I am trying to add H8 to the following code:

    Sheets("Cost Accounting").Select
    Range("E10").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Data").Select
    Range("D3").Select
    ActiveSheet.Paste

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to combine two cells into one

    Try something like this
    Please Login or Register  to view this content.
    Substitute your own sheet names.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro to combine two cells into one

    Would putting this formula in Data!D3 work for you, =Accounting!H8 & Accounting!E10

  6. #6
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    Re: Macro to combine two cells into one

    That solved it. Thanks

+ 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