PC Review


Reply
 
 
Steve
Guest
Posts: n/a
 
      29th Feb 2008
Hiya all,

what i want to do ia automaticaly save at a certain point. I want to add
this after Call logout.



Thanks




Sub CheckOutOrder()

Call CheckLogin

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Show_message = MsgBox("Does the customer want a copy of the receipt?",
vbYesNo, "Print Receipt")

If Show_message = vbYes Then
Range("Announcement1").Select
ActiveCell.FormulaR1C1 = "Customer Copy"

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Range("Announcement1").Select
ActiveCell.FormulaR1C1 = ""
End If

Call UpdateStock

Call ClearCurrentOrder("OrderComplete")

Call LogAction("Printed Reciept For " & RoomNumber)
Sheets("Reciept").Select

Call ClearReciept

Call LogOut

End Sub


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 080228-0, 28/02/2008
Tested on: 29/02/2008 15:01:14
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com



 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      29th Feb 2008
why not

activeworkbook.save

as a line in your 'Logout' macro

Mike

"Steve" wrote:

> Hiya all,
>
> what i want to do ia automaticaly save at a certain point. I want to add
> this after Call logout.
>
>
>
> Thanks
>
>
>
>
> Sub CheckOutOrder()
>
> Call CheckLogin
>
> ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
>
> Show_message = MsgBox("Does the customer want a copy of the receipt?",
> vbYesNo, "Print Receipt")
>
> If Show_message = vbYes Then
> Range("Announcement1").Select
> ActiveCell.FormulaR1C1 = "Customer Copy"
>
> ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
>
> Range("Announcement1").Select
> ActiveCell.FormulaR1C1 = ""
> End If
>
> Call UpdateStock
>
> Call ClearCurrentOrder("OrderComplete")
>
> Call LogAction("Printed Reciept For " & RoomNumber)
> Sheets("Reciept").Select
>
> Call ClearReciept
>
> Call LogOut
>
> End Sub
>
>
> ---
> avast! Antivirus: Outbound message clean.
> Virus Database (VPS): 080228-0, 28/02/2008
> Tested on: 29/02/2008 15:01:14
> avast! - copyright (c) 1988-2008 ALWIL Software.
> http://www.avast.com
>
>
>
>

 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      29th Feb 2008
=?Utf-8?B?TWlrZSBI?= <(E-Mail Removed)> wrote in
news:6322E92E-75BF-4773-963E-(E-Mail Removed):

great thanks


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 080228-0, 28/02/2008
Tested on: 29/02/2008 15:37:36
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autosaving forms =?Utf-8?B?Q2hyaXN0aWFuID48Pg==?= Microsoft Access 3 19th Jun 2006 08:35 PM
Autosaving in asp application =?Utf-8?B?RGF2ZQ==?= Microsoft Dot NET 2 2nd May 2006 08:25 PM
autosaving as .html not .htm Jesse Hand Microsoft Frontpage 3 15th Apr 2004 09:15 PM
Autosaving Bryn Microsoft Excel Programming 0 5th Feb 2004 10:58 AM
autosaving shortcuts? why is it doing this???? moe Microsoft Excel Misc 1 9th Sep 2003 11:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:52 AM.