+ Reply to Thread
Results 1 to 2 of 2

Find and Replace Macro - Pivot Table

  1. #1
    Registered User
    Join Date
    11-17-2020
    Location
    UK
    MS-Off Ver
    2016
    Posts
    21

    Question Find and Replace Macro - Pivot Table

    Hello!

    I have a bunch of Pivot Tables (and a Pivot Charts) with several dates with date format (dd/mm/yyyy):

    capture.png.

    I would just like to have a macro that replaces every date of every table to a text. For example 15/01/2020 to "1stQ Jan"; 15/02/2020 to "2ndQ Feb" and so on and so on. I have tried to use this code (only to see if it works, but it doesn't...). Any idea why is this not working? And how can I change a code to have all these dates?

    Please Login or Register  to view this content.
    Thank you very much.
    Last edited by caet_; 10-04-2021 at 06:09 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Find and Replace Macro - Pivot Table

    Hi there,

    Try the modified code below.
    Your code is looking for a string/text whereas you have a date.

    Please Login or Register  to view this content.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Find and Replace Macro to replace list of special characters
    By dcowiesmith in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-22-2021, 02:01 PM
  2. Using Table with Find & Replace Macro
    By karlyle in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-26-2020, 01:28 PM
  3. Replace Sumifs Function with Pivot Table in Power Pivot
    By cbrown6305 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-01-2018, 02:53 PM
  4. [SOLVED] Macro to Find/Replace Record in One Table Based on Records in Another Table
    By DavidFC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2018, 04:41 AM
  5. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  6. (macro) Find and Replace Using Reference Table
    By jamesdella in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2012, 03:03 PM
  7. Find/Replace Macro Using Replace Table
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2011, 11:00 AM

Tags for this Thread

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