LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default my saveas macro date problem

Hi Don,

See my apology and explanation posted 5 weeks ago!



---
Regards,
Norman



"Don Guillett" wrote in message
...
Norman, Please change your date

--
Don Guillett
SalesAid Software

"Norman Jones" wrote in message
...
Hi Nigel,

Is there any chance that the Dater variable has inadvertently been
reproduced as Date somewhere in your code?

If the code icludes, for example, something like:

Date = Range("B32").Value

then the system date would be changed if the value of B32 was other than
the system date. Additionally, depending on the value o f B32, your time
might be adjusted by 1 (2?) hours to allow for local ime changes.


---
Regards,
Norman



"Nigel" wrote in message
...
Hi,
i have a now written a macro with help from this site ( thanks

everyone )
that saves my active sheet as a separate workbook in a location based
on
information entered on the sheet. ( a folder on the server with monthly
folders inside ).my problem is now this. the macro looks at the date
required
for the invoice to determine where this sheet will be saved. ( we also
post
invoice and pend them for the next month so we enter a forcasted month

and
save it automatically to the month folder). but if i enter a forcasted
date
that is in front of todays date, the macro changes the computer date to
that
date entered on the invoice and puts the time back by 2 hours. Does
nanybody
have any ideas???
here is my macro:

Sub saveassheet()

Namer = ActiveSheet.Name
Location = "S:\Invoicing & Sales\Invoices April 05 - March 06"
yearly = Format(ActiveSheet.Range("h16").Value, "yy")
Dater = Format(ActiveSheet.Range("h16").Value, "mmmm")
Clienter = Range("B23").Value
detailer = Range("B32").Value

ActiveSheet.Copy
ActiveWorkbook.SaveAs Location & "\" & Dater & " " & yearly & "\" &

Namer
&
" " & Clienter & " " & detailer

End Sub

This is causing me huge confusion.

thanks in advance,

Nigel







 
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
SaveAs CSV problem pittur Excel Programming 2 June 16th 05 02:22 PM
SaveAs Problem Don Lloyd Excel Programming 7 January 11th 05 10:54 AM
ActiveWorkbook.SaveAs Problem SowBelly Excel Programming 4 August 4th 04 10:58 PM
SaveAs problem Jessi Excel Programming 2 July 31st 03 07:36 PM


All times are GMT +1. The time now is 07:36 PM.

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"