+ Reply to Thread
Results 1 to 4 of 4

Runtime error 1004

  1. #1
    Registered User
    Join Date
    07-29-2016
    Location
    Bristol, UK
    MS-Off Ver
    2010
    Posts
    7

    Runtime error 1004

    Hello,

    Please could someone help me resolve Runtime error 1004? I can't get my head around it. I use the macro below that seems to work on other documents but not the one I need. I would appreciate any help.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Runtime error 1004

    As far as I can see and test this macro works ok. So perhaps one of the sheet names is not allowed as file names?

    ◾< (less than)
    ◾> (greater than)
    ◾: (colon)
    ◾" (double quote)
    ◾/ (forward slash)
    ◾\ (backslash)
    ◾| (vertical bar or pipe)
    ◾? (question mark)
    ◾* (asterisk)
    These are windows forbidden characters in file names. Do you have any of these in your sheet names?

    Alf

  3. #3
    Registered User
    Join Date
    07-29-2016
    Location
    Bristol, UK
    MS-Off Ver
    2010
    Posts
    7

    Re: Runtime error 1004

    Thanks, Alf. I have figured it out in the end, it's because one worksheet was password protected.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Runtime error 1004

    Thanks for feedback. Good to know

    Alf

+ 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. Runtime error '1004': Paste special method of range class error.
    By Daryl Zer0 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2014, 01:44 AM
  2. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  3. [SOLVED] Range error in code, runs alone but not inside my full program, giving runtime error 1004
    By charizzardd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2012, 03:34 PM
  4. runtime error 1004
    By caherine in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2012, 04:28 PM
  5. Runtime error 1004
    By Zippy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2006, 04:45 PM
  6. [SOLVED] What causes runtime error 1004?
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 10-27-2005, 03:05 PM
  7. Excel 2003 Macro Error - Runtime error 1004
    By Cow in forum Excel General
    Replies: 2
    Last Post: 06-07-2005, 09:05 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