+ Reply to Thread
Results 1 to 8 of 8

Macro to concatenate within a predefined array

  1. #1
    Registered User
    Join Date
    05-02-2018
    Location
    London
    MS-Off Ver
    MS 2013
    Posts
    58

    Macro to concatenate within a predefined array

    Hi All,

    I am having some issues with concatenate two columns within an array that I am trying to define (this will later be matched with the same from another sheet) but for now I have come up with the following code and am trying to paste it to ensure that it is working. However, when I run through nothing is pasted in the cells. Any help would be much appreciated!
    Please Login or Register  to view this content.

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Macro to concatenate within a predefined array

    try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-02-2018
    Location
    London
    MS-Off Ver
    MS 2013
    Posts
    58

    Re: Macro to concatenate within a predefined array

    Unfortunately, that still doesn't seem to be pasting anything into the cells!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Macro to concatenate within a predefined array

    You should get the error at
    Please Login or Register  to view this content.
    What are you trying to do?

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,057

    Re: Macro to concatenate within a predefined array

    Please Login or Register  to view this content.
    should likely be:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Macro to concatenate within a predefined array

    Also this
    Please Login or Register  to view this content.
    should be
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  7. #7
    Registered User
    Join Date
    05-02-2018
    Location
    London
    MS-Off Ver
    MS 2013
    Posts
    58

    Re: Macro to concatenate within a predefined array

    Thanks so much all - all of these changes have helped and it's now working!

    much appreciated!

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Macro to concatenate within a predefined array

    Glad you got it working and thanks for rep+.

+ 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. [SOLVED] UDF for concatenate predefined number of cells
    By jessko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-12-2016, 02:08 PM
  2. copy data based on predefined condition and paste them to an "array"
    By shu001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2015, 03:09 PM
  3. [SOLVED] Excel Concatenate formula or macro based on array
    By mcranda in forum Excel General
    Replies: 0
    Last Post: 10-19-2015, 03:44 PM
  4. VBA - Run Macro from a predefined list of times
    By waynegro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2014, 01:11 PM
  5. Create a Macro from predefined text
    By Helders in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-19-2013, 02:37 AM
  6. Replies: 1
    Last Post: 05-03-2012, 10:50 AM
  7. Replies: 3
    Last Post: 10-27-2008, 08:32 AM

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