Simple VBA Fixes for Excel PivotTable Macros

Тәжірибелік нұсқаулар және стиль

This video explains how to solve common problems that occur when you record a macro for creating a PivotTable in Excel.
------------------------

Пікірлер: 42

  • @coolpatj
    @coolpatj3 ай бұрын

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

  • @diannejewell4410
    @diannejewell44102 жыл бұрын

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

  • @lopeslayer
    @lopeslayer10 ай бұрын

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

  • @jiojio
    @jiojio4 жыл бұрын

    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! :-)

  • @deejayMarks
    @deejayMarks7 жыл бұрын

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

  • @NErJeTeek
    @NErJeTeek4 жыл бұрын

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

  • @mariegracealban5744
    @mariegracealban57446 жыл бұрын

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

  • @sudhindrasukumar2605
    @sudhindrasukumar26056 жыл бұрын

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

  • @AlexisKimbrough
    @AlexisKimbrough5 жыл бұрын

    Worked perfectly, thank you!

  • @1509niks
    @1509niks4 жыл бұрын

    Thank you Chester. The fix works perfectly!!!

  • @SuperVindvalker
    @SuperVindvalker7 жыл бұрын

    Great video! It helped me a lot- thank you

  • @MrLilbill805
    @MrLilbill8055 жыл бұрын

    This is great! Thank you so much!

  • @Eivogel1985
    @Eivogel19854 жыл бұрын

    great job! thanks chester, you really helped me out

  • @ftey2000
    @ftey20006 жыл бұрын

    Thanks ! you saved me a lot of debugging time.

  • @ahmedbaklka3324
    @ahmedbaklka33245 жыл бұрын

    Thank you awesome lesson! ❤️👍🏽

  • @mastercamer
    @mastercamer7 жыл бұрын

    really what i needed!! thanks chester

  • @farazahmed1025
    @farazahmed10253 жыл бұрын

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

  • @sunilshahzad8535

    @sunilshahzad8535

    2 жыл бұрын

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

  • @sureshnagappan762
    @sureshnagappan7624 жыл бұрын

    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

  • @clarinkitty631
    @clarinkitty631 Жыл бұрын

    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

  • @rohitvautre3159
    @rohitvautre31592 жыл бұрын

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

  • @inuinu8004
    @inuinu80044 жыл бұрын

    Amazing tutorial. thanks a lot!!!

  • @bloody88
    @bloody885 жыл бұрын

    Great! Thank You!

  • @Nileshkumar-ks9tw
    @Nileshkumar-ks9tw4 жыл бұрын

    Thank you so much chester!

  • @jayasreecarey7843
    @jayasreecarey78432 жыл бұрын

    Thanks ! Very Helpful !

  • @anabernal5129
    @anabernal51295 жыл бұрын

    thank you veeeeeery much!

  • @salaivanamalir279
    @salaivanamalir2795 жыл бұрын

    very good one!!!

  • @jfuen3784
    @jfuen37842 жыл бұрын

    Perfect

  • @evchaboy3570
    @evchaboy35707 жыл бұрын

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

  • @dammitanothername
    @dammitanothername3 жыл бұрын

    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.

  • @RahulSharma-bw3zg
    @RahulSharma-bw3zg4 жыл бұрын

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

  • @kyttdina100
    @kyttdina1002 жыл бұрын

    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. :(

  • @suvishah26
    @suvishah266 жыл бұрын

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

  • @monicathatcher7140
    @monicathatcher71405 жыл бұрын

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

  • @KhoaNguyen-fs6to
    @KhoaNguyen-fs6to7 жыл бұрын

    Can we change Destination to Dynamic?

  • @dasrotrad
    @dasrotrad7 жыл бұрын

    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

  • @Nileshkumar-ks9tw

    @Nileshkumar-ks9tw

    4 жыл бұрын

    listobjects not opbjects

  • @rodericpenullar1190
    @rodericpenullar11904 жыл бұрын

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

  • @skpandey202
    @skpandey2024 жыл бұрын

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

  • @sahiljainnit
    @sahiljainnit4 жыл бұрын

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

  • @danielalexander3640
    @danielalexander36404 жыл бұрын

    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

Келесі