+ Reply to Thread
Results 1 to 4 of 4

Concatenate and Copy Paste as values for whole sheet

  1. #1
    Registered User
    Join Date
    07-11-2015
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    2

    Question Concatenate and Copy Paste as values for whole sheet

    Dear all,

    first of all I am new to the forum (and to VBA programming, but I had found answers to many excel-related questions here over the past year. So I thought I'd also give it a go.

    I just started looking at VBA tutorials and want to understand more about it.

    One question I have: I work with large data bases, and need to do Vlookups regularly. As the fields are sometimes numbers, sometimes text / mixed etc., they do not always work immediately. To circumvent this formatting problem, so far I have been using =Concatenate() in a separate column, copied it all the way down, then copied & pasted these fields as values, and then replaced the previous column with the "Concatenated" values.

    My question is: is there a macro one could use to

    1. =concatenate all cells in the workbook
    2. copy / repaste them in the same spot as values?

    This would save an immense amount of time for me, and I would also learn the VBA logic behind it.

    Thanks in advance and best,

    A Padawan
    Last edited by JBeaucaire; 07-11-2015 at 12:20 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concatenate + Copy / paste as values for whole sheet?

    Sure. Outline your exact steps more fully and we can make a macro that does the exact same thing.

    Or, turn on the macro recorder and let it record you going through your current manual process from start to finish. Then turn off the macro recorder and paste the recorded code here, we can adapt that to make it reusable and dynamic.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-11-2015
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    2

    Re: Concatenate + Copy / paste as values for whole sheet?

    testtestestest

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concatenate and Copy Paste as values for whole sheet

    Why the test? See post #2 in case you missed it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy and paste only values from one sheet to another
    By naga in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-17-2015, 12:24 PM
  2. [SOLVED] Copy sheet & paste as values
    By jwillis07 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2014, 09:17 AM
  3. Copy Values from two columns and Paste them in one (Concatenate).
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-08-2014, 11:12 AM
  4. Replies: 1
    Last Post: 10-03-2013, 03:58 PM
  5. [SOLVED] should copy and paste the intersect values from sheet 1 to sheet 2
    By Apps in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-12-2013, 10:06 AM

Tags for this Thread

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