+ Reply to Thread
Results 1 to 3 of 3

Run-time error '1004: Cannot rename the sheet as another sheet as same name

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Run-time error '1004: Cannot rename the sheet as another sheet as same name

    Hi,
    If I run this macro with the values in the column as 'A' and 'a' i am getting error.Basically code is differentiating upper and lower cases
    Please Login or Register  to view this content.
    Thanks,
    Attached Files Attached Files
    Last edited by narendrabr; 02-03-2014 at 11:27 AM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Run-time error '1004: Cannot rename the sheet as another sheet as same name

    VBA is case sensitive by default, so if the
    code is differentiating upper and lower case
    then add
    Please Login or Register  to view this content.
    to the General Declarations section at the top of the module/userform/class or whatever.

    That makes all text comparisons non case sensitive.

    Note the setting only affects the module it is defined in. You will have to add to each module as required.

    You could also consider adding
    Please Login or Register  to view this content.
    to your .FIND statements.
    Last edited by cytop; 02-03-2014 at 11:44 AM.

  3. #3
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Run-time error '1004: Cannot rename the sheet as another sheet as same name

    can you please modify the code?

+ 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' when sheet is locked
    By Alleen86 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2013, 09:07 PM
  2. Run-time error 1004 when protecting sheet
    By BVT3030 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:42 PM
  3. Run Time Error 1004 - You cannot use this command on a protected sheet
    By frogboy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-11-2012, 07:59 AM
  4. VB run time error 1004 on protected sheet
    By Twaddy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2010, 05:07 PM
  5. Run-time error 1004 when sheet is protected
    By AJ. in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-05-2008, 10:33 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