+ Reply to Thread
Results 1 to 2 of 2

how to stop VBA overwriting Pivot Table Value if Value doesn't exist

  1. #1
    Registered User
    Join Date
    11-05-2007
    Posts
    54

    how to stop VBA overwriting Pivot Table Value if Value doesn't exist

    Simply put

    I have drop down cell for the user to insert the month number 1-12.

    I have then writen the following code to set the pivot table.

    Please Login or Register  to view this content.
    The pivot table is reading information off another worksheet which is being populated from the rest of the workbooks.

    So as time goes by, each month will get used.

    So at present values 1-8 work fine.

    However, if the user enters 9, then the current month in the pivot tables get overwritten with the value 9.

    What i want is for the code to enter say 9 (presently) and if error then leave the value as is adn msg box "no entries" and stop VBA.

    Simples i'm sure, but i can't work it out.

  2. #2
    Registered User
    Join Date
    11-05-2007
    Posts
    54

    Re: how to stop VBA overwriting Pivot Table Value if Value doesn't exist

    can anyone help?

+ 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