+ Reply to Thread
Results 1 to 3 of 3

VBA - Error 462 when running code from second time

  1. #1
    Registered User
    Join Date
    01-25-2015
    Location
    Barcelona, Spain
    MS-Off Ver
    2010
    Posts
    5

    Exclamation VBA - Error 462 when running code from second time

    Hi all,
    I get the error 462 'The remote server machine does not exist or is unavailable' on line 526 where I declare 'For Each ws In ActiveWorkbook.Worksheets'
    This just happens the second time I run the code, the first time it works nicely.
    Anyone can suggest me what I need to change in my code to get rid of this error?
    Thanks in advance!
    Regards,

    Francisco

    My code goes here...

    code.txt

  2. #2
    Registered User
    Join Date
    01-25-2015
    Location
    Barcelona, Spain
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA - Error 462 when running code from second time

    Someone can help me with some tip¿?
    Thanks...

  3. #3
    Registered User
    Join Date
    01-25-2015
    Location
    Barcelona, Spain
    MS-Off Ver
    2010
    Posts
    5

    Re: VBA - Error 462 when running code from second time

    Please any help?

+ 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. Error while running 2nd time
    By Mattn91 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-03-2012, 04:11 PM
  2. Run-Time error '1004': when running my code
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2012, 03:19 PM
  3. Formula for obtaining the total running time from the time code
    By hbsunshine in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 03-06-2011, 05:26 AM
  4. Is it possible to have the same code running twice at the same time?
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2009, 03:49 AM
  5. [SOLVED] why I got error value after running this code?
    By Bao Guangya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2006, 09:45 AM

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