+ Reply to Thread
Results 1 to 3 of 3

Run-time error '1004': Application-defined or object-defined error

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Karachi
    MS-Off Ver
    Excel 2010
    Posts
    18

    Run-time error '1004': Application-defined or object-defined error

    Hi guys,

    Thank you for all the help provided so far (by just searching relevant info on the forum), the forum is a huge resource of knowledge.

    OK, here is what I am trying to do
    • The macro finds the number of 'columns' that have data (from column 7 onwards), done.
    • The macro then also finds the number of rows that contain data (in column 7, the master column), done
    • According to the number of columns I concatenate G1 with G2, G1 with G3, H1 with H2, H1 with H3 and so on (according to the number of columns with data + rows number taken from master column)

    I have been able to copy/paste most of the code to successfully work as I want, this is the last line of code that works
    Please Login or Register  to view this content.
    While when I add another to the same, it gives the "Run-time error '1004': Application-defined or object-defined error" error. I think I have used a lot of code for one cell and maybe that is the reason the code is being generated, any help with this will be appreciated.

    Please Login or Register  to view this content.
    Last edited by WaqasTariq; 11-06-2012 at 11:14 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run-time error '1004': Application-defined or object-defined error

    You've exceeded the 255 arguments limit for CONCATENTATE.

    Why not just use the ampersand, &, as the concatenate operator in the code?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    Karachi
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Run-time error '1004': Application-defined or object-defined error

    Quote Originally Posted by Norie View Post
    You've exceeded the 255 arguments limit for CONCATENTATE.

    Why not just use the ampersand, &, as the concatenate operator in the code?
    Thank you so very much, I am very much a newbie into macro creation, this worked like a charm. Thanks again!

+ 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