+ Reply to Thread
Results 1 to 5 of 5

"Not responding".. when Sheets("xx1").Select

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Swi
    MS-Off Ver
    Excel 2007
    Posts
    2

    "Not responding".. when Sheets("xx1").Select

    Hello,
    I have a very annoying issue.

    when executing the following code, the application hangs when simply trying to do a Sheets().Select.... it works on 2k2, 2k3,.. even 2k10, but not on 2k7 !

    do you have any idea (security, code, etc..) ?? thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: "Not responding".. when Sheets("xx1").Select

    Hi arancia
    try changing....
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    02-02-2010
    Location
    Swi
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: "Not responding".. when Sheets("xx1").Select

    Thanks, but I have this error now :

    Run-time error '1004'
    Cannot rename a sheet to the same name as another sheet, a referenced object library or a workbook referenced by Visual Basic..



    But can you see any reason it works only not on 2k7 ?

  4. #4
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Re: "Not responding".. when Sheets("xx1").Select

    Quote Originally Posted by arancia View Post
    Thanks, but I have this error now :

    Run-time error '1004'
    Cannot rename a sheet to the same name as another sheet, a referenced object library or a workbook referenced by Visual Basic..



    But can you see any reason it works only not on 2k7 ?
    You cannot keep same name for two worksheets. Please ensure that the name which you are trying to assign doesn't already exist in the workbook.

    Also check if there is any hidden file.

    Thanks,
    Vikas

  5. #5
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Re: "Not responding".. when Sheets("xx1").Select

    Ok, the [Sheets("xx1").Select] bug might be coming because the sheet may not exist in the workbook. Please find below a code snippet which I would have used for the similar purpose. Personally, I never prefer to select a cell or any other object(like chart) because it slows down the execution so I use it like the following way :

    Please Login or Register  to view this content.

+ 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