+ Reply to Thread
Results 1 to 7 of 7

Run-time error '1004': An unexpected error has occurred

  1. #1
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Run-time error '1004': An unexpected error has occurred

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Run-time error '1004': An unexpected error has occurred

    What is in the variable sURL?

    If it is empty then you will see the 1004 error at the refresh line.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: Run-time error '1004': An unexpected error has occurred

    i am trying make dynamically get data of every URL links in Sheet2

    i have multiple URL in sheet1

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Run-time error '1004': An unexpected error has occurred

    Yes but that does not answer the question.

    What is the value of sURL when the code fails? Looking at the code you posted I would suggest it contains nothing. But you could have other code which you have not posted that actual sets a value to the variable.

  5. #5
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: Run-time error '1004': An unexpected error has occurred

    little bit confused here please help me out

    i have URL Links in Sheet1

    i have attached my Excel Sheet
    Attached Files Attached Files
    Last edited by baig123; 07-15-2014 at 05:21 AM. Reason: paragraph

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Run-time error '1004': An unexpected error has occurred

    you can not simply replace sURL in your recorded macro code and expect it to work.

    You need to put something in the sURL variable and then run the code.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: Run-time error '1004': An unexpected error has occurred

    its Working Thanks for sharing ur knowledge

+ 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. [SOLVED] Macro with Solver. An unexpected internal error occurred, or available memory
    By sofiaventura in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-26-2013, 04:24 PM
  2. Solver: An unexpected internal error occurred, or available memory
    By Chad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2013, 05:31 AM
  3. Replies: 0
    Last Post: 04-06-2006, 02:45 AM
  4. New to VBA, getting unexpected error 1004
    By Teodomiro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2006, 11:50 AM
  5. Unexpected error 1004 when using workbooks.open
    By AHD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2005, 07:05 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