+ Reply to Thread
Results 1 to 2 of 2

Error Proofing

  1. #1
    Jasper
    Guest

    Error Proofing

    Goodmorning Everybody,

    My question is:

    "When I want a pivot field to change into the value I set on K I use:

    ActiveSheet.PivotTables("PivotTable3").PivotFields("ARF Code").CurrentPage =
    "" & k & ""

    However it can and will happen that the value set on k does not exist in the
    pivot field. When this occurs I want the macro to use the following code:

    ActiveSheet.PivotTables("PivotTable3").PivotFields("ARF Code").CurrentPage =
    "(blank)"

    How can I write such a thing down? Thanks in Advance!

  2. #2
    Nick
    Guest

    Re: Error Proofing

    Jasper

    see your previous post, I've added some code.

    Nick


    "Jasper" <[email protected]> wrote in message
    news:[email protected]...
    > Goodmorning Everybody,
    >
    > My question is:
    >
    > "When I want a pivot field to change into the value I set on K I use:
    >
    > ActiveSheet.PivotTables("PivotTable3").PivotFields("ARF Code").CurrentPage
    > =
    > "" & k & ""
    >
    > However it can and will happen that the value set on k does not exist in
    > the
    > pivot field. When this occurs I want the macro to use the following code:
    >
    > ActiveSheet.PivotTables("PivotTable3").PivotFields("ARF Code").CurrentPage
    > =
    > "(blank)"
    >
    > How can I write such a thing down? Thanks in Advance!




+ 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