Results 1 to 12 of 12

2003 Macro is not running fine in 2010 why?

Threaded View

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    9

    2003 Macro is not running fine in 2010 why?

    Hi

    I have a macro which i am trying to use in excel 2010 its not working fine(2003 working fine), its taking so much of time and result is not responding. Due to the ms office update i am suffering to use those macros.

    May be having solutions but i am not aware of it, Suggest me how to use those macros again, Thank you in advance.

    Macro states like this.

    I am using this macro to grab data from website.
    sheet1 contains only links
    sheet2 will be the data grabbed
    sheet3 will be like temp.,
    I tried using xlsm also but still its not responding.

    
    
    Sub Macro2()
    a = 1
    Sheets(3).Select
    While Sheets(1).Cells(a, 1) <> ""
    urladdress = "URL;" & Sheets(1).Cells(a, 1).Text
    
    With ActiveSheet.QueryTables.Add(Connection:= _
    urladdress, Destination:=Range( _
    "$A$1"))
    .Name = Right(Sheets(1).Cells(a, 1).Value, 80)
    .FieldNames = True
    .RowNumbers = False
    .FillAdjacentFormulas = False
    .PreserveFormatting = True
    .RefreshOnFileOpen = False
    .BackgroundQuery = True
    .RefreshStyle = xlInsertDeleteCells
    .SavePassword = False
    .SaveData = True
    .AdjustColumnWidth = True
    .RefreshPeriod = 0
    .WebSelectionType = xlEntirePage
    .WebFormatting = xlWebFormattingNone
    '.WebTables = "1,""wedstrijdTable2"""
    .WebPreFormattedTextToColumns = True
    .WebConsecutiveDelimitersAsOne = True
    .WebSingleBlockTextImport = False
    .WebDisableDateRecognition = False
    .WebDisableRedirections = False
    .Refresh BackgroundQuery:=False
    End With
    
    
    Range("A1").Copy Sheets(2).Cells(a, 1)
    Range("A2").Copy Sheets(2).Cells(a, 2)
    Range("A3").Copy Sheets(2).Cells(a, 3)
    Range("A4").Copy Sheets(2).Cells(a, 4)
    Range("A5").Copy Sheets(2).Cells(a, 5)
    Range("A6").Copy Sheets(2).Cells(a, 6)
    Range("A7").Copy Sheets(2).Cells(a, 7)
    
    
    a = a + 1
    Sheets(3).Cells.ClearContents
    Wend
    End Sub

    here is the code i am using.
    Last edited by latifpatel.t; 09-06-2016 at 07:41 PM. Reason: extra data to understand

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] CheckBoxes.Add Works fine in 2010 but not 2007 or 2003
    By Jakeman92 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-18-2013, 05:17 AM
  2. [SOLVED] Advanced Filter Macro does not work, running manually works fine
    By jamiemc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2013, 07:22 PM
  3. Project with AddIn runs fine in Excel 2000, 2003 and 2007...2010 crashes
    By jaslake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2013, 10:10 AM
  4. Macro works fine in 2010, Crashing in 2003 - Posting problem code - Please Help?
    By RDAmidwest in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 04:14 PM
  5. Macro works fine in Excel 2003 but not in 2007
    By jackdebnam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2011, 12:00 PM
  6. Replies: 0
    Last Post: 07-27-2010, 12:49 AM
  7. Excel 97 not running macro that runs fine in 2000
    By Rich J in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2006, 02:50 PM
  8. Loop in my macro doesn't seem to be running; however, it compiles fine...
    By Goobies in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2006, 09:00 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