Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Updating dates

I have a worksheet and I want the date in Cell A5 to show current date if the
pivot table on the worksheet refreshes. Can someone provide the code?

I have another worksheet and I only want date in Cell E2 to update if any
edits were made in worksheet. Can someone give me code for this?

Thanks,

Aidan.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Updating dates

Place this code in your worksheet code

Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
range("E2").value = format(now(),"dd/mm/yyyy")
End Sub

--
If the post is helpful, please consider donating something to an animal
charity on my behalf.


"Aidan" wrote:

I have a worksheet and I want the date in Cell A5 to show current date if the
pivot table on the worksheet refreshes. Can someone provide the code?

I have another worksheet and I only want date in Cell E2 to update if any
edits were made in worksheet. Can someone give me code for this?

Thanks,

Aidan.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I stop footer dates from updating? JEB Excel Discussion (Misc queries) 1 January 4th 08 04:09 PM
Updating Dates to Next Specific Weekday Automatically [email protected] Excel Programming 1 August 11th 06 12:23 AM
Automatic updating of Conditional Formats using dates MAD Excel Worksheet Functions 5 May 3rd 05 04:44 AM
updating dates? L/P Setting up and Configuration of Excel 0 January 4th 05 04:54 PM
entering and updating dates on a spreadsheet slewis3 Excel Worksheet Functions 2 December 24th 04 01:06 AM


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"