+ Reply to Thread
Results 1 to 3 of 3

Comparing two cells in VBA

  1. #1
    Registered User
    Join Date
    12-09-2003
    Posts
    7

    Question Comparing two cells in VBA

    I hope I can explain this clearly... I have a traffic log that I've put in a spreadsheet with three columns: Date, IP, and Traffic. I created a macro that turns this into a pivot table (on another sheet) that sums up the traffic by IP for the month. So far so good.

    Now what I would like to do is delete the original sheet once I verify that the monthly traffic total in the pivot table matches that of the source data. I found that I can get to the pivot table's grand total with this command:

    Please Login or Register  to view this content.
    My question is: in VBA how do I sum the traffic numbers in the source sheet (column C), then compare the total with the pivot table total, and only delete the source sheet if the totals match?

    Thanks,
    Tom

  2. #2
    Registered User
    Join Date
    08-20-2003
    Location
    Luton, England
    Posts
    63
    SOMETHING LIKE :-
    Please Login or Register  to view this content.
    Regards
    BrianB
    Most problems are caused by starting from the wrong place.
    Use a cup of coffee to speed up all Windows processes.
    It's easy until you know how.
    -----------------------------------------

  3. #3
    Registered User
    Join Date
    12-09-2003
    Posts
    7
    THanks for your help, Brian.

    Quote Originally Posted by BrianB
    SOMETHING LIKE :-
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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