Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Footer (Update Date)

Hello from Steved
I put in 18-Aug-03 in MsgBox
When I run the Macro I get 2123, How or can this be
corrected to show what is in the MsgBox. As I have Other
information in the same footer is it possible just to
update the first row and leave rows 2 to 4 as is. Hence 18-
Aug-03 is shown on row 1.

Sub UpdateFooter()
Dim UpdateFooter As String
UpdateFooter = InputBox("Enter New Date:")
MsgBox "The New Date is " & UpdateFooter '
Sheets("Pt Chevalier-St Heliers Service").Select
With ActiveSheet.PageSetup
UpdateFooter = ActiveCell.Text
.RightFooter = UpdateFooter
End With
End Sub

Thankyou

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Footer (Update Date)


-----Original Message-----
Hello from Steved
I put in 18-Aug-03 in MsgBox
When I run the Macro I get 2123, How or can this be
corrected to show what is in the MsgBox. As I have Other
information in the same footer is it possible just to
update the first row and leave rows 2 to 4 as is. Hence

18-
Aug-03 is shown on row 1.

Sub UpdateFooter()
Dim UpdateFooter As String
UpdateFooter = InputBox("Enter New Date:")
MsgBox "The New Date is " & UpdateFooter '
Sheets("Pt Chevalier-St Heliers Service").Select
With ActiveSheet.PageSetup
UpdateFooter = ActiveCell.Text
.RightFooter = UpdateFooter
End With
End Sub

Thankyou

Hi Steved,

just a thought, you can save yourself from possible
ambiguous referencing by avoiding naming macros and
variables with the same name.

Examine line 7 and you will notice that you have replaced
the date assigned to the variable 'UpdateFooter' ...

UpdateFooter = ActiveCell.Text

This may explain the problem...

Luck
Jonathan

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
Auto update information in footer - pat Excel Worksheet Functions 0 February 11th 10 07:15 PM
Header/Footer to update on all sheets Jonno Excel Discussion (Misc queries) 5 August 13th 09 01:15 PM
Footer - Automatic Date Update Matt Excel Discussion (Misc queries) 2 December 19th 08 09:38 PM
Automatic update of footer macro Greg Excel Worksheet Functions 2 October 19th 07 01:22 AM
How do I update the built in header and footer pull down lists? SteveS Excel Discussion (Misc queries) 1 June 20th 06 08:05 PM


All times are GMT +1. The time now is 10:12 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"