Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 309
Default Using Excel to WRITE to a closed Excel file

Somebody told me that the best way to use Excel (and VBA)
to write to a closed (.xlsx) Excel file is to first open the
file, write changes using VBA code, then close the file.

Well, I don't really want the target write file to open on the
screen and let my users see the file changes happen. My question
is, is there a way to invisibly or stealthily open a closed Excel file,
write changes, then close the file without anybody see this all happen??

Also, does anyone know of an alternative way to write to a closed
Excel file using VBA/Excel??

Thank you!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Using Excel to WRITE to a closed Excel file

application.screenupdating=false
'do your thing
application.screenupdating=true

Tim

"Robert Crandal" wrote in message
...
Somebody told me that the best way to use Excel (and VBA)
to write to a closed (.xlsx) Excel file is to first open the file, write
changes using VBA code, then close the file.

Well, I don't really want the target write file to open on the
screen and let my users see the file changes happen. My question
is, is there a way to invisibly or stealthily open a closed Excel file,
write changes, then close the file without anybody see this all happen??

Also, does anyone know of an alternative way to write to a closed
Excel file using VBA/Excel??

Thank you!




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Using Excel to WRITE to a closed Excel file

To write to to a closed workbook there are I think 2 ways, with ADO and with
BIFF.
Best to Google for both.

RBS


"Robert Crandal" wrote in message
...
Somebody told me that the best way to use Excel (and VBA)
to write to a closed (.xlsx) Excel file is to first open the file, write
changes using VBA code, then close the file.

Well, I don't really want the target write file to open on the
screen and let my users see the file changes happen. My question
is, is there a way to invisibly or stealthily open a closed Excel file,
write changes, then close the file without anybody see this all happen??

Also, does anyone know of an alternative way to write to a closed
Excel file using VBA/Excel??

Thank you!



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
Write to a closed excel spreadsheet Dave[_11_] Excel Programming 2 August 28th 09 02:39 PM
write cell values to a closed file Dave[_11_] Excel Programming 1 August 26th 09 09:54 PM
Write data in a closed file? Nicolas[_3_] Excel Programming 1 February 2nd 07 02:47 AM
Write data in a closed file? Nicolas[_3_] Excel Programming 1 February 1st 07 01:26 AM
Write to Array from other closed Excel file Dave B[_4_] Excel Programming 5 October 1st 03 04:48 PM


All times are GMT +1. The time now is 11:16 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"