Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Code to instruct "Insert new disk"


Jim Jackson wrote:
I have searched VBA Help and this forum but cannot find any hint to what I
need. I have written a routine that backs up selected file types to the
drive chosen by the user. I found that, when including jpeg files, the CD
fills up rather quickly.

The macro hung up and I was forced to re-boot to regain control. Is there
code that will recognize that the next file is too large for the available
space and allow a change of disks?

Thanks.
--
Best wishes,

Jim


An interesting problem. I've never tried automating saving to multiple
disks, but perhaps you could work around the problem by first knowing
the capacity of the drive/disk, then, explicitly save each file one at
a time, but whilst detecting their respective sizes (search for info on
using the FileSystem object for this).

As soon as you encounter a file that exceeds the remaing capacity of
the disk, you can enter a DoEvents loop after prompting the user to
swap the disks, then continue from the file you left off at once the
disk is changed.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Code to instruct "Insert new disk"

You are right on the button. Using AvailableSpace I can write the lines
needed to trigger the msgbox and allow changing discs.

Thanks,
--
Pops Jackson


"JakeyC" wrote:


Jim Jackson wrote:
I have searched VBA Help and this forum but cannot find any hint to what I
need. I have written a routine that backs up selected file types to the
drive chosen by the user. I found that, when including jpeg files, the CD
fills up rather quickly.

The macro hung up and I was forced to re-boot to regain control. Is there
code that will recognize that the next file is too large for the available
space and allow a change of disks?

Thanks.
--
Best wishes,

Jim


An interesting problem. I've never tried automating saving to multiple
disks, but perhaps you could work around the problem by first knowing
the capacity of the drive/disk, then, explicitly save each file one at
a time, but whilst detecting their respective sizes (search for info on
using the FileSystem object for this).

As soon as you encounter a file that exceeds the remaing capacity of
the disk, you can enter a DoEvents loop after prompting the user to
swap the disks, then continue from the file you left off at once the
disk is changed.


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
I get a "Disk full" message,what disk? Deputydog New Users to Excel 4 April 10th 08 08:42 PM
Lost "File Menu" - now it's "Edit / View / Insert.." but no "F daves Excel Discussion (Misc queries) 3 April 24th 07 04:52 AM
"Disk is Full" add-on question to "Can't reset last cell" post tod [email protected] Excel Discussion (Misc queries) 0 January 22nd 07 02:32 AM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM
Insert code into each worksheet's "Sub Worksheet_SelectionChange" Function John[_46_] Excel Programming 2 September 23rd 03 04:11 AM


All times are GMT +1. The time now is 08:26 PM.

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

About Us

"It's about Microsoft Excel"