PC Review


Reply
Thread Tools Rate Thread

auto save code for vb in excell

 
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
i got a workbook that several ppl use. i need the work book to auto save
every 5 or so min. i got a few macro's. dont wana just add it to a macro.
if sumthing hapens in between the macro's being used i want the data saved
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      17th Jun 2007
Tools > Options... > Save > every 5 minutes
--
Gary''s Student - gsnu200730
 
Reply With Quote
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
i work for a company with about 18 branches all over. it i go to tools etc
it will only safe my work on my computer. i email this worksheet to the
other branches and need theyr stuff to auto save as well. i can add a save
code to all my macro's but a powerfail or some happens and they did not run
any macro then all work will be lost


"Gary''s Student" wrote:

> Tools > Options... > Save > every 5 minutes
> --
> Gary''s Student - gsnu200730

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      17th Jun 2007
Put this in workbook code:

Private Sub Workbook_Open()
Application.AutoRecover.Enabled = True
Application.AutoRecover.Time = 5
End Sub

It will turn AutoSave for anyone opening the workbook. All users will be
safe.

REMEMBER: workbook code, not a standard module
--
Gary''s Student - gsnu200730


"pswanie" wrote:

> i work for a company with about 18 branches all over. it i go to tools etc
> it will only safe my work on my computer. i email this worksheet to the
> other branches and need theyr stuff to auto save as well. i can add a save
> code to all my macro's but a powerfail or some happens and they did not run
> any macro then all work will be lost
>
>
> "Gary''s Student" wrote:
>
> > Tools > Options... > Save > every 5 minutes
> > --
> > Gary''s Student - gsnu200730

 
Reply With Quote
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
sweet!!!

thanx


"Gary''s Student" wrote:

> Put this in workbook code:
>
> Private Sub Workbook_Open()
> Application.AutoRecover.Enabled = True
> Application.AutoRecover.Time = 5
> End Sub
>
> It will turn AutoSave for anyone opening the workbook. All users will be
> safe.
>
> REMEMBER: workbook code, not a standard module
> --
> Gary''s Student - gsnu200730
>
>
> "pswanie" wrote:
>
> > i work for a company with about 18 branches all over. it i go to tools etc
> > it will only safe my work on my computer. i email this worksheet to the
> > other branches and need theyr stuff to auto save as well. i can add a save
> > code to all my macro's but a powerfail or some happens and they did not run
> > any macro then all work will be lost
> >
> >
> > "Gary''s Student" wrote:
> >
> > > Tools > Options... > Save > every 5 minutes
> > > --
> > > Gary''s Student - gsnu200730

 
Reply With Quote
 
=?Utf-8?B?cHN3YW5pZQ==?=
Guest
Posts: n/a
 
      17th Jun 2007
wups!!!!

how do i paste that code in the workbook code?


sowi...

"pswanie" wrote:

> i got a workbook that several ppl use. i need the work book to auto save
> every 5 or so min. i got a few macro's. dont wana just add it to a macro.
> if sumthing hapens in between the macro's being used i want the data saved

 
Reply With Quote
 
Mike Fogleman
Guest
Posts: n/a
 
      17th Jun 2007
I don't believe this will work for users of Excel 2000 or older.

Mike F
"Gary''s Student" <(E-Mail Removed)> wrote in message
news:0A2E5E16-209A-4A7E-9CF3-(E-Mail Removed)...
> Put this in workbook code:
>
> Private Sub Workbook_Open()
> Application.AutoRecover.Enabled = True
> Application.AutoRecover.Time = 5
> End Sub
>
> It will turn AutoSave for anyone opening the workbook. All users will be
> safe.
>
> REMEMBER: workbook code, not a standard module
> --
> Gary''s Student - gsnu200730
>
>
> "pswanie" wrote:
>
>> i work for a company with about 18 branches all over. it i go to tools
>> etc
>> it will only safe my work on my computer. i email this worksheet to the
>> other branches and need theyr stuff to auto save as well. i can add a
>> save
>> code to all my macro's but a powerfail or some happens and they did not
>> run
>> any macro then all work will be lost
>>
>>
>> "Gary''s Student" wrote:
>>
>> > Tools > Options... > Save > every 5 minutes
>> > --
>> > Gary''s Student - gsnu200730



 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      17th Jun 2007
1. Go to the menu bar at the top of the window ( File Edit View Insert ...)
2. Right-click the small worksheet icon to the immediate left of File
3. Select View code
4. Paste the stuff in
--
Gary''s Student - gsnu200730


"pswanie" wrote:

> wups!!!!
>
> how do i paste that code in the workbook code?
>
>
> sowi...
>
> "pswanie" wrote:
>
> > i got a workbook that several ppl use. i need the work book to auto save
> > every 5 or so min. i got a few macro's. dont wana just add it to a macro.
> > if sumthing hapens in between the macro's being used i want the data saved

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      17th Jun 2007
Is there any alternative approach??
--
Gary''s Student - gsnu200730


"Mike Fogleman" wrote:

> I don't believe this will work for users of Excel 2000 or older.
>
> Mike F
> "Gary''s Student" <(E-Mail Removed)> wrote in message
> news:0A2E5E16-209A-4A7E-9CF3-(E-Mail Removed)...
> > Put this in workbook code:
> >
> > Private Sub Workbook_Open()
> > Application.AutoRecover.Enabled = True
> > Application.AutoRecover.Time = 5
> > End Sub
> >
> > It will turn AutoSave for anyone opening the workbook. All users will be
> > safe.
> >
> > REMEMBER: workbook code, not a standard module
> > --
> > Gary''s Student - gsnu200730
> >
> >
> > "pswanie" wrote:
> >
> >> i work for a company with about 18 branches all over. it i go to tools
> >> etc
> >> it will only safe my work on my computer. i email this worksheet to the
> >> other branches and need theyr stuff to auto save as well. i can add a
> >> save
> >> code to all my macro's but a powerfail or some happens and they did not
> >> run
> >> any macro then all work will be lost
> >>
> >>
> >> "Gary''s Student" wrote:
> >>
> >> > Tools > Options... > Save > every 5 minutes
> >> > --
> >> > Gary''s Student - gsnu200730

>
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      17th Jun 2007
xl2k and below came with an optional addin called AutoSave.xla. It could be set
to save every x minutes (user selectable). And it just saves the file at those
intervals.

xl2002+ comes with something called autorecovery. It's also optional, but if
the user turns it on, it saves a copy of that workbook in a special location
(also user selectable). If windows or excel crash, then the next time excel
opens, it notices that there's a file in that location. Excel prompts the user
to see if he/she wants to recover that file that was saved when excel/windows
crashed.

This autorecovery feature isn't used for the same purpose as AutoSave.

(If you have a copy of autosave.xla from a previous version, it'll work with
xl2002+, too.)

But since you don't want to have the user select options to turn on autosave,
you may find adding an ontime macro that runs every so often to your workbook's
project.

Chip Pearson explains how to use application.ontime:
http://www.cpearson.com/excel/ontime.htm



pswanie wrote:
>
> i got a workbook that several ppl use. i need the work book to auto save
> every 5 or so min. i got a few macro's. dont wana just add it to a macro.
> if sumthing hapens in between the macro's being used i want the data saved


--

Dave Peterson
 
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
Auto save as text and close in code? GD Microsoft Excel New Users 2 18th May 2009 08:33 PM
auto locking of excell workbook (excell 2003) cheekymonkey Microsoft Excel Misc 2 14th Nov 2008 11:50 PM
How do you add to auto fill in excell? =?Utf-8?B?amFrZXRoZXNuYWtlSA==?= Microsoft Excel Misc 1 9th Mar 2007 06:20 PM
SAVE TABLES AUTO INTO EXCELL EVERYDAY W/DIFF NAMES =?Utf-8?B?ZGViNTE=?= Microsoft Access External Data 0 12th Apr 2006 01:54 AM
writing code to auto save a spreadsheet =?Utf-8?B?c2s=?= Microsoft Excel New Users 1 12th Aug 2004 12:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 PM.