Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there
I am new to this VBA, but i will try to give it a go. I would like the workbook to be saved when the user shifts away from Sheet1 to be certain that content of Sheet1 is always saved. I suppose that the piece of code should be placed in a VBA module under the workbook Thanks Ole |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Private Sub Worksheet_Deactivate() ActiveWorkbook.Save End Sub Right click sheet1 sheet tab, view code and paste this in Mike "OM" wrote: Hi there I am new to this VBA, but i will try to give it a go. I would like the workbook to be saved when the user shifts away from Sheet1 to be certain that content of Sheet1 is always saved. I suppose that the piece of code should be placed in a VBA module under the workbook Thanks Ole |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mike
Works fine, thanks a lot "Mike H" skrev: Try this: Private Sub Worksheet_Deactivate() ActiveWorkbook.Save End Sub Right click sheet1 sheet tab, view code and paste this in Mike "OM" wrote: Hi there I am new to this VBA, but i will try to give it a go. I would like the workbook to be saved when the user shifts away from Sheet1 to be certain that content of Sheet1 is always saved. I suppose that the piece of code should be placed in a VBA module under the workbook Thanks Ole |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
cannot shift objects off sheet | Excel Discussion (Misc queries) | |||
CAN'T SHIFT OBJECTS OFF SHEET. WHAT DOES THIS MEAN? | Excel Discussion (Misc queries) | |||
Cannot shift objects off sheet | Excel Discussion (Misc queries) | |||
Cannot Shift Object off Sheet | Excel Discussion (Misc queries) | |||
Cannot Shift Objects off sheet | Excel Worksheet Functions |