Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am using the following function to save changes after any data is entered
into a worksheet: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) ActiveWorkbook.Save End Sub Is there a way to use auto save only if data is entered in a certain range? Thanks for the help, Mike |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
dim myRng as range set myrng = me.range("a1,c3,e5:j17") if myrng.cells.count = application.counta(myrng) then me.parent.save end if End Sub MIke wrote: I am using the following function to save changes after any data is entered into a worksheet: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) ActiveWorkbook.Save End Sub Is there a way to use auto save only if data is entered in a certain range? Thanks for the help, Mike -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dave,
I am getting a Compile error that reads Method or data member not found. I changed the range to ("B7:S38"). I am not sure what the problem is. Thanks for the help, Mike "Dave Peterson" wrote: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) dim myRng as range set myrng = me.range("a1,c3,e5:j17") if myrng.cells.count = application.counta(myrng) then me.parent.save end if End Sub MIke wrote: I am using the following function to save changes after any data is entered into a worksheet: Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) ActiveWorkbook.Save End Sub Is there a way to use auto save only if data is entered in a certain range? Thanks for the help, Mike -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically saving changes | Excel Discussion (Misc queries) | |||
Automatically saving changes | Excel Discussion (Misc queries) | |||
Automatically saving value even though the formula changes with th | Excel Worksheet Functions | |||
Excel: Automatically Saving as Web Page | Excel Discussion (Misc queries) | |||
FILES CREATED AUTOMATICALLY WHILE SAVING | Excel Discussion (Misc queries) |