Consulting

Results 1 to 3 of 3

Thread: Wrong customer apprearing

  1. #1
    VBAX Contributor
    Joined
    Jul 2017
    Posts
    110
    Location

    Wrong customer apprearing

    HI,

    I have a code which suppose to go to Pivot table and selet custmer as per range mentioned in other tab "LB_Cust".
    I have new custmer called ABC and same hasbeen added to LB_Cut list.
    Now pivot is not showing this cusmter and data for new custmer getting into other custmor.

    My new Customer showing zero data but when select other customer (which should be zero), showing in this customer.

    not sure what is wrong with this code

    Attaching sheet with code.

    Thanks
    Attached Files Attached Files
    Last edited by Paul_Hossler; 04-18-2018 at 05:35 AM.

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,724
    Location
    The attachment only consists of a worksheet with some macro code pasted on it

    It's be much more helpful if you could attach a XLSM workbook with the macro and enough data (including the pivot table) that demonstrates the problem

    Include a description of the issue with some specific examples please
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,873
    Yor attached file contains your code in a few cells,nothing else.
    The code looks OK (there are instances when it would trrip up) but not in the way you're stating.
    We'd need to see a workbook with these things in. De-sensitise if necessary.
    We'd need to see at least:
    • The Cal sheet
    • The Pivot sheet, with its pivot(s) esp. pivot called PivotTable1
    • The sheet holding the source data for the pivot.
    • Also point us to where the errant code is.
    • You can remove any code which you're sure is irrelevant.

    edit post posting: I see Paul's beaten me to it!
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •