Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Read and Write Excel file

I writes contiuonsly to an excel file, after 4 hours I close the file and
start a new. While writing I want to look in the excel file.

wb.Open +=new WorkbookEvents_OpenEventHandler(wb_Open);
wb.BeforeClose +=new WorkbookEvents_BeforeCloseEventHandler(wb_BeforeCl ose);

1) when you open the file it is writing to, it comes up with a message "This
file is already open, do you want to reopen it, and I must press "No".

I would like to avoid the popup message and pressing No by making it in the
program. But which event must I use. I though it used Open, but I am wrong.

2)When I close the file it comes up with the message. Do you want to save
the changes you made. If I press yes or no, my program stops writing !! If I
do nothing
and wait it automatically close the wb. How do I close the file without
interrupting my writing ? I use the event BeforeCloseEventHandler.
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 have a read only xl file, I need it to be read and write drama queen Excel Discussion (Misc queries) 3 July 1st 06 12:25 AM
read only file-need to write judithbear Excel Discussion (Misc queries) 4 January 17th 06 03:31 PM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM
How can I read/write file with binary format??? NC Excel Programming 2 May 27th 04 09:35 AM
Open file to write and read at the same time Tom Ogilvy Excel Programming 2 September 22nd 03 01:10 PM


All times are GMT +1. The time now is 10:17 AM.

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"