Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Button that creates a back up in Excel


I've been given the task of making a spreadsheet that will make a copy
of itself, at the end of the day. I would like to have a button in my
spreadsheet that creates a back up copy and then exit. Can I get it to
check for (and maybe create) a folder called 'backup' (at the same
level as the original spreadsheet) and then save it there? I don't want
the user to get too involved in this process - apart from clicking the
'Backup and Exit' button.

Can anyone explain what I would have to do in order to do that? What
would I have to write in Visual Basic? Thanks for your co-operation..
:)


--
petros89
------------------------------------------------------------------------
petros89's Profile: http://www.excelforum.com/member.php...o&userid=24645
View this thread: http://www.excelforum.com/showthread...hreadid=382319

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Button that creates a back up in Excel

You could try something like this, petros:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=456
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"petros89" wrote in
message ...

I've been given the task of making a spreadsheet that will make a copy
of itself, at the end of the day. I would like to have a button in my
spreadsheet that creates a back up copy and then exit. Can I get it to
check for (and maybe create) a folder called 'backup' (at the same
level as the original spreadsheet) and then save it there? I don't want
the user to get too involved in this process - apart from clicking the
'Backup and Exit' button.

Can anyone explain what I would have to do in order to do that? What
would I have to write in Visual Basic? Thanks for your co-operation..
:)


--
petros89
------------------------------------------------------------------------
petros89's Profile:

http://www.excelforum.com/member.php...o&userid=24645
View this thread: http://www.excelforum.com/showthread...hreadid=382319



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Button that creates a back up in Excel

Here is some code

With ActiveWorkbook
On Error Resume Next
MkDir .Path & "\backup"
On Error GoTo 0
.SaveCopyAs .Path & "\backup\" & .Name
End With


--

HTH

RP
(remove nothere from the email address if mailing direct)


"petros89" wrote in
message ...

I've been given the task of making a spreadsheet that will make a copy
of itself, at the end of the day. I would like to have a button in my
spreadsheet that creates a back up copy and then exit. Can I get it to
check for (and maybe create) a folder called 'backup' (at the same
level as the original spreadsheet) and then save it there? I don't want
the user to get too involved in this process - apart from clicking the
'Backup and Exit' button.

Can anyone explain what I would have to do in order to do that? What
would I have to write in Visual Basic? Thanks for your co-operation..
:)


--
petros89
------------------------------------------------------------------------
petros89's Profile:

http://www.excelforum.com/member.php...o&userid=24645
View this thread: http://www.excelforum.com/showthread...hreadid=382319



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Button that creates a back up in Excel


Yes, well it's close enough. Thanks for the help! :

--
petros8
-----------------------------------------------------------------------
petros89's Profile: http://www.excelforum.com/member.php...fo&userid=2464
View this thread: http://www.excelforum.com/showthread.php?threadid=38231

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
Excel 'Back' Button Jen Excel Discussion (Misc queries) 1 March 24th 10 12:16 PM
How can I turn back on the sort button in excel 2007? Jose Liriano Excel Discussion (Misc queries) 2 August 23rd 07 05:10 PM
How can I call IE browser (Back button) through Excel macro? SAM SEBAIHI Excel Discussion (Misc queries) 0 December 14th 06 12:49 AM
How can you close a window with the back button in excel Holly Williams Excel Discussion (Misc queries) 0 September 20th 05 01:57 PM
Using the Back Button when viewing Excel through an Intranet Browser Andy Winter Excel Programming 0 December 31st 03 04:18 PM


All times are GMT +1. The time now is 03:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"