Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jay Blatherwick
 
Posts: n/a
Default Hope someone can help me


Hi

I have created what I thought was a template of an invoice - hoping
other people could use it, putting in their amounts etc then save it
but the template wouldn't change for next time but I can still save new
stuff to the template.

I also want the time to update automatically on the template but not
when it is saved by someone - I then want the date to stay on that date
it was saved so we have a record of all the invoices we create but still
also have the template intact.

Hope someon can help me and sorry if I have not made myself too clear.

Jay


--
Jay Blatherwick
------------------------------------------------------------------------
Jay Blatherwick's Profile: http://www.excelforum.com/member.php...o&userid=35458
View this thread: http://www.excelforum.com/showthread...hreadid=552326

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Hope someone can help me

You need to add some VBA to the template


Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Worksheets("Sheet1").Range("A1").Value = Format(Now, "dd mmm yyyy
hh:mm:ss")
End Sub

This is workbook event code.
To input this code, right click on the Excel icon on the worksheet
(or next to the File menu if you maximise your workbooks),
select View Code from the menu, and paste the code


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Jay Blatherwick"
<Jay.Blatherwick.29gc81_1150389003.1358@excelfor um-nospam.com wrote in
message news:Jay.Blatherwick.29gc81_1150389003.1358@excelf orum-nospam.com...

Hi

I have created what I thought was a template of an invoice - hoping
other people could use it, putting in their amounts etc then save it
but the template wouldn't change for next time but I can still save new
stuff to the template.

I also want the time to update automatically on the template but not
when it is saved by someone - I then want the date to stay on that date
it was saved so we have a record of all the invoices we create but still
also have the template intact.

Hope someon can help me and sorry if I have not made myself too clear.

Jay


--
Jay Blatherwick
------------------------------------------------------------------------
Jay Blatherwick's Profile:

http://www.excelforum.com/member.php...o&userid=35458
View this thread: http://www.excelforum.com/showthread...hreadid=552326



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
Hope someone here can help me AlienBeans Excel Discussion (Misc queries) 9 March 17th 06 12:37 AM
LAST HOPE....Time is Ticking!! Miss Atlanta Excel Discussion (Misc queries) 4 March 7th 06 03:36 AM
I hope you understand my qwuestion Need help with sumif Excel Discussion (Misc queries) 2 January 25th 06 09:13 PM
Help Please - Match & Index Functions (I hope)! baz Excel Discussion (Misc queries) 0 September 2nd 05 02:42 PM
Excel - easy summary (I hope !) Vince281 Excel Discussion (Misc queries) 4 June 6th 05 09:23 PM


All times are GMT +1. The time now is 07:39 AM.

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

About Us

"It's about Microsoft Excel"