Added: 1 year ago
From: bjele123
Views: 2,536
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Hello Bill

    Very useful video. Using your suggestion in Excel 2003 (VB 6.5), I find you have to declare "finalrow" as Long. Also, why does this function not work for finding the max number of columns (which surely you may also need), e g:

    finalcol = Cells(Columns.Count, 1).End(xlUp).Column

    I always get a 1 when it's actually 4 in my example

    There are a couple of alternatives:

    1) simply remove the range reference;

    2) use the lbound and ubound functions to determine the array size.

  • Hi Bill!

    I tryed to do this type of macro, but when I try to run it it send´s me an error: Invalid procedure call or argument

    ActiveWorkbook.PivotCaches.Cre­ate(SourceType:=xlDatabase, SourceData:= _ DataSheet & "R1C1:R" & FinalRow & "C17", Version:=xlPivotTableVersion10­).CreatePivotTable _ TableDestination:=NewSheet & "R3C1", TableName:="PivotTable2", DefaultVersion _ :=xlPivotTableVersion10

    And I don´t know how to fix it. Can you help me?

    Thanks

  • Hi Bill,

    Great video! Nice approach too ("I am not going to teach you VBA, I am just going to show you how to fix the macro recorder" ...smile). The best first step in using VBA (even for Access) is modifying what the Excel macro recorder does. I will be passing this video link on to others who are trying to learn, thanks :)

    Warm Regards,

    Crystal * (: have an awesome day :) *

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more