+ Reply to Thread
Results 1 to 6 of 6

Run-time error '1004': Method 'range' of object '_Global' failed

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    MS Office Professional 2010
    Posts
    30

    Question Run-time error '1004': Method 'range' of object '_Global' failed

    Hi all,
    I am getting this issue on my code below. Does anyone know why? It works fine for column Q but not for column V.

    I get the error on this line " Range("V8:V" & lastrow).PasteSpecial Paste:=xlPasteFormulas, Operation:=xlPasteSpecialOperationNone, skipblanks:=True, Transpose:=False"

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: Run-time error '1004': Method 'range' of object '_Global' failed

    Step through the code and use a message box to display lastrow when it reaches the column you get an error in.
    <---If my answer helped, please click *

  3. #3
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: Run-time error '1004': Method 'range' of object '_Global' failed

    I would avoid copy-and-paste all together.

  4. #4
    Registered User
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    MS Office Professional 2010
    Posts
    30

    Re: Run-time error '1004': Method 'range' of object '_Global' failed

    Quote Originally Posted by joe31623 View Post
    I would avoid copy-and-paste all together.
    but i need to copy and paste formulas (just formulas to be exact)

    Quote Originally Posted by joe31623 View Post
    Step through the code and use a message box to display lastrow when it reaches the column you get an error in.
    not exactly sure what you mean by this. Can you explain more in detail please?

    Thanks for trying to help!

  5. #5
    Registered User
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    MS Office Professional 2010
    Posts
    30

    Re: Run-time error '1004': Method 'range' of object '_Global' failed

    Ok not sure what happened but i just closed the file and reopen..ran the macro step by step (F8) and it has no issues. Not sure what it was but hopefully i dont get it again.

  6. #6
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: Run-time error '1004': Method 'range' of object '_Global' failed

    Rube,

    I believe you can do it without copy/paste using a .FillDown and/or .SpecialCells method, but if you're able to get it to work with copy/paste and it doesn't cause you any issues or take too long, just do what works.

    If it takes too long, let me know and I'll construct a solution for you.

+ 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. Run-time error '1004: Method 'range' of object'_Global' failed
    By narendrabr in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-01-2014, 05:56 AM
  2. [SOLVED] Run-time error 1004 - Method 'Range' of object'_Global' failed
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2013, 03:33 PM
  3. [SOLVED] Run-time error ‘1004’: Method ‘Range’ of ‘object’_Global’ failed.
    By dhiresh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2013, 12:04 PM
  4. [SOLVED] Run time error 1004: method range of object _global failed
    By Danry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2012, 07:31 PM
  5. Run-time-error 1004 -- Method 'Range' of object '_Global' failed
    By tilleyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2012, 10:55 PM
  6. Run-Time Error 1004 Method Range of object _Global Failed?
    By MadDino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2011, 05:13 AM
  7. Run-time error '1004': Method 'Range' of object '_Global' failed
    By claremount in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-26-2010, 08:01 AM
  8. [SOLVED] Run-time error '1004': Method 'Range' of object '_Global' failed
    By Neild in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2006, 07:50 PM

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