Simple VBA Fixes for Excel PivotTable Macros

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 42

  • @lopeslayer
    @lopeslayer Год назад

    Ok, so tutorials like this restore my faith on humanity! Thank you a lot, my friend! =)

  • @coolpatj
    @coolpatj 7 месяцев назад

    This is the solution I've been looking for for months.... Very grateful you uploaded this!!

  • @diannejewell4410
    @diannejewell4410 2 года назад

    Finally, a video which solves the basic problem of 1004 on a level I can understand. Thank You!!!

  • @sureshnagappan762
    @sureshnagappan762 4 года назад +2

    Hi chester. good video. tried using your approach but mine has an error Run TIme error 9 which is Subscript out of Range at dataname = ActiveSheet.ListObjects(1).Name
    do you know why is this so.
    thank you

  • @jiojio
    @jiojio 4 года назад

    THANK YOU!!! I've been trying to figure out how to do this for years! No exaggeration. My one goal today was to finally work out how create a macro that inserts a pivot table using variable table sizes. Amazing. Thanks so much. This is a game-changer! :-)

  • @1509niks
    @1509niks 4 года назад

    Thank you Chester. The fix works perfectly!!!

  • @RahulSharma-bw3zg
    @RahulSharma-bw3zg 4 года назад

    Thank u So much Sir,
    can you Please help , will this error occur every time?
    Can't we fix it for everyone?

  • @mariegracealban5744
    @mariegracealban5744 6 лет назад +1

    Thanks so much! it worked for me and it was simple to follow.

  • @rohitvautre3159
    @rohitvautre3159 2 года назад

    This is exactly what I was looking for 👍, this helped a lot.

  • @deejayMarks
    @deejayMarks 7 лет назад +2

    You sir, helped me solve a big issue. A nice step by step and well explained video.
    Thank you so much

  • @kyttdina100
    @kyttdina100 2 года назад

    thank you. worked for me in general, but i have a question how to make the filter work inside the pivot (i have to eliminate all items from dropdown that have 152; in them, and the list might vary) it keeps the original selection only. :(

  • @NErJeTeek
    @NErJeTeek 5 лет назад

    Thank you so much for your thorough video! It worked perfectly for what I needed. 🙏🏼

  • @sudhindrasukumar2605
    @sudhindrasukumar2605 6 лет назад

    Thank you very much Mr. Chester Tugwell. It was helpful

  • @farazahmed1025
    @farazahmed1025 4 года назад +1

    Thank you very much for this video, was very helpful, please can you do a video for dynamic columns as well.

    • @sunilshahzad8535
      @sunilshahzad8535 3 года назад

      I am stuck at the same thing
      I need to make pivot based on dynamic columns
      Please advise

  • @Eivogel1985
    @Eivogel1985 5 лет назад

    great job! thanks chester, you really helped me out

  • @Nileshkumar-ks9tw
    @Nileshkumar-ks9tw 4 года назад

    Thank you so much chester!

  • @inuinu8004
    @inuinu8004 4 года назад

    Amazing tutorial. thanks a lot!!!

  • @dasrotrad
    @dasrotrad 7 лет назад +9

    Thank you chester. I want to add the pivot table to the existing sheet. I have tried to modify your code but it isn't working. My code stips at dataname = ActiveSheet.ListOpbjects(1).Name

  • @AlexisKimbrough
    @AlexisKimbrough 5 лет назад

    Worked perfectly, thank you!

  • @ftey2000
    @ftey2000 6 лет назад

    Thanks ! you saved me a lot of debugging time.

  • @clarinkitty631
    @clarinkitty631 Год назад +1

    Tried using your approach but mine has an error Run TIme error 9 which is Subscript out of Range at dataname = ActiveSheet.ListObjects(1).Name . Can you please me with the same or anyone else can help me

  • @evchaboy3570
    @evchaboy3570 7 лет назад

    Thanks bud. Is it a quick fix to put the maco in the same sheet rather than a new sheet?

  • @skpandey202
    @skpandey202 4 года назад

    Hello Sir
    At 8:37 on video did you right newsheet 1 or ?
    Becoz mine pivot' VBA is stuck over that point.
    Pls help

  • @dammitanothername
    @dammitanothername 4 года назад

    Nice. If your filesize expanded dramatically due to many pivot tables, you can set a pt option savedata =false. Each pivot table you create, even if it's the same source, saves a copy of the data unless you toggle the savedata option OR use a data model as source. google is your friend.

  • @ahmedbaklka3324
    @ahmedbaklka3324 5 лет назад

    Thank you awesome lesson! ❤️👍🏽

  • @MrLilbill805
    @MrLilbill805 5 лет назад

    This is great! Thank you so much!

  • @SuperVindvalker
    @SuperVindvalker 7 лет назад

    Great video!
    It helped me a lot- thank you

  • @suvishah26
    @suvishah26 7 лет назад +2

    Hi , i am getting error with listobject name ... as subcript out of range .. can you help

  • @mastercamer
    @mastercamer 7 лет назад

    really what i needed!! thanks chester

  • @bloody88
    @bloody88 5 лет назад

    Great! Thank You!

  • @rodericpenullar1190
    @rodericpenullar1190 4 года назад

    After Revenue Pivot, can not create next pivot table using the macro. Need to debug since Revenue Pivot worksheet is already exist.

  • @anabernal5129
    @anabernal5129 5 лет назад

    thank you veeeeeery much!

  • @salaivanamalir279
    @salaivanamalir279 5 лет назад

    very good one!!!

  • @jfuen3784
    @jfuen3784 3 года назад

    Perfect

  • @monicathatcher7140
    @monicathatcher7140 6 лет назад

    what if you need to take a new sheet of data and add that to the existing pivot table?

  • @sahiljainnit
    @sahiljainnit 4 года назад

    Idk why, but it did not work for me. Same error of debug coming after making all the changes as in the video.

  • @KhoaNguyen-fs6to
    @KhoaNguyen-fs6to 8 лет назад

    Can we change Destination to Dynamic?

  • @danielalexander3640
    @danielalexander3640 5 лет назад

    I did exactly as you did and I am getting a run time error 1004 - reference not valid
    Dim dataname As String
    Dim newsheet As String
    dataname = ActiveSheet.ListObjects(1).Name

    Sheets.Add
    newsheet = ActiveSheet.Name

    ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
    dataname, Version:=6).CreatePivotTable TableDestination:=newsheet & "!R3C1", _
    TableName:="PivotTable1", DefaultVersion:=6

  • @jayasreecarey7843
    @jayasreecarey7843 2 года назад

    Thanks ! Very Helpful !