+ Reply to Thread
Results 1 to 2 of 2

Copy a range/column after the last column with data Error Message

  1. #1
    Forum Contributor
    Join Date
    01-29-2015
    Location
    .
    MS-Off Ver
    2010
    Posts
    313

    Copy a range/column after the last column with data Error Message

    My macro report keeps saying that the "Last = "LastCol" is not defined?




    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Copy a range/column after the last column with data Error Message

    Hello scarlettw123,

    It is not defined in the Sub procedure. By the way it is used, it appears to be a Function procedure that returns the last column of worksheet.

    Use Find while the VB Editor and check your entire "Project" for "LastCol". This will locate the call if it is present.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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 data from column K to column B if Column C and column I match
    By goog2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2013, 12:19 PM
  2. Macro broken - copy data range column to empty data range column
    By Cascus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-06-2011, 05:20 PM
  3. Excel 2007 : Error message when deleting column
    By ighosh in forum Excel General
    Replies: 0
    Last Post: 04-26-2011, 10:55 AM
  4. copy range to next available cell in column error
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-19-2010, 12:34 PM
  5. [SOLVED] Error message when trying to insert a column
    By Kelly in forum Excel General
    Replies: 8
    Last Post: 09-12-2005, 03:59 PM

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