Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I have never done any macros in vba for excel. I have however don some vb, but it was a long time ago. If i remember well Private Su Form_Unload(Cancel As Integer) was everything u wanted to do before closed ur form. Heres the beginning of the code i was working on. Nothing happens on the form unload, i tryed putting a messagebox there but nothing happened. Is there something u gotta do differently in vb then in vb Thanks Ben Option Explicit Private Sub Form_Load() End Sub Private Sub Form_Unload(Cancel As Integer) If ThisWorkbook.Saved = False Then ThisWorkbook.Save End If ThisWorkbook.Close End Su -- Benny578 ----------------------------------------------------------------------- Benny5788's Profile: http://www.excelforum.com/member.php...fo&userid=2497 View this thread: http://www.excelforum.com/showthread.php?threadid=38502 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Colon at the end of excel file name(ex: problem.xls:1, problem.xls | New Users to Excel | |||
Started out as an Access problem. Now an Excel problem | Excel Discussion (Misc queries) | |||
problem with a conditional max problem | Excel Discussion (Misc queries) | |||
Problem when multipple users access shared xl-file at the same time, macrocode for solve this problem? | Excel Programming |