#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default save Y/N?

From main menu I go to a database where I can change data. Before I return
to the main menu I would like to have a box wich asks "Save Y/N"
If Y save (how?)
Else Return

Thanks,

Ben


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default save Y/N?

If MsgBox("Save", vbYesNo, "Application Name") = vbYes Then
'Saving Process
Else
'return
End If


Haldun

"B. Wassen" , iletide şunu yazdı
...
From main menu I go to a database where I can change data. Before I return
to the main menu I would like to have a box wich asks "Save Y/N"
If Y save (how?)
Else Return

Thanks,

Ben




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default save Y/N?

Thanks,

the messagebox is working but how can I actually save the data?
What comes after Then en between else and endif?


Private Sub Hoofdmenu_Click()

If MsgBox("Wilt u de wijzigingen opslaan?", vbYesNo, "Orderinvoer.xls") =
vbYes Then


Else


End If






End Sub



"Haldun Alay" schreef in bericht
...
If MsgBox("Save", vbYesNo, "Application Name") = vbYes Then
'Saving Process
Else
'return
End If


Haldun

"B. Wassen" , iletide şunu yazdı
...
From main menu I go to a database where I can change data. Before I

return
to the main menu I would like to have a box wich asks "Save Y/N"
If Y save (how?)
Else Return

Thanks,

Ben






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default save Y/N?

Hi Ben

Record a macro while saving and you have the proper syntax and parameters.

--
HTH. Best wishes Harald
Excel MVP
Followup to newsgroup only please

"B. Wassen" skrev i melding
...
Thanks,

the messagebox is working but how can I actually save the data?
What comes after Then en between else and endif?


Private Sub Hoofdmenu_Click()

If MsgBox("Wilt u de wijzigingen opslaan?", vbYesNo, "Orderinvoer.xls") =
vbYes Then


Else


End If






End Sub



"Haldun Alay" schreef in bericht
...
If MsgBox("Save", vbYesNo, "Application Name") = vbYes Then
'Saving Process
Else
'return
End If


Haldun

"B. Wassen" , iletide şunu yazdı
...
From main menu I go to a database where I can change data. Before I

return
to the main menu I would like to have a box wich asks "Save Y/N"
If Y save (how?)
Else Return

Thanks,

Ben








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
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
SAVE and SAVE AS options disappeared from the drop down FILE menu [email protected] Excel Discussion (Misc queries) 2 July 12th 07 09:14 AM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
Save Excel file - prompts to save - no Volitile functions used POWER CERTS Excel Worksheet Functions 2 November 1st 04 09:27 PM


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