+ Reply to Thread
Results 1 to 2 of 2

Excel 2010 to Excel 2013 Eroor? PivotTable, ListBox VBA not working.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Excel 2010 to Excel 2013 Eroor? PivotTable, ListBox VBA not working.

    'Loop Through Every Selected Item in ListBox1'
    Dim i As Integer
    Dim Counter As Integer
    For i = 0 To ListBox1.ListCount - 1
        If ListBox1.Selected(i) Then
            Counter = Counter + 1
            Sheets("Lookup to Ledger").PivotTables("PivotTable1").PivotFields("Select Customer").CurrentPage = ListBox1.List(i)
            Call CreateUsageReportsFromSelectionsSimple
        End If
    Next i
    This ALWAYS workedon 2010, now on 2013, it bugs? I am not sure if it due to 2013 or something else.

    It bugs here:

    Sheets("Lookup to Ledger").PivotTables("PivotTable1").PivotFields("Select Customer").CurrentPage = ListBox1.List(i)

  2. #2
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Excel 2010 to Excel 2013 Eroor? PivotTable, ListBox VBA not working.

    It wasn't a 2010-2013 error. Bug went away on further tweaking of other 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. Macros written in Excel 2010 don't work in Excel 2013
    By Bukovnik in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-03-2015, 01:24 AM
  2. VBA charts work fine in excel 2013 but not in excel 2010
    By caabdul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2014, 08:05 AM
  3. Code created in Excel 2010 does not work with Excel 2013
    By Steve@Rugby in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2014, 10:14 AM
  4. Listbox not working in Excel 2013
    By dghillza in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-18-2014, 01:38 AM
  5. Replies: 10
    Last Post: 08-20-2013, 01:02 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