Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MAS MAS is offline
external usenet poster
 
Posts: 18
Default Write no closed workbook ?

Hi,

How do I write from one workbook to a closed workbook ?

MAS


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Write no closed workbook ?

Generally you don't unless the closed workbook is organized as a database.
then you may be able to do it using ADO.

http://support.microsoft.com/default...46&Product=xlw
How To Transfer Data from ADO Data Source to Excel with ADO

http://support.microsoft.com/default...73&Product=xlw
SAMPLE: ExcelADO Demonstrates How to Use ADO to Read and Write Data in Excel
Workbooks

http://support.microsoft.com/default...19&Product=xlw
How To Use ADO with Excel Data from Visual Basic or VBA

--
Regards,
Tom Ogilvy


"MAS" wrote in message
...
Hi,

How do I write from one workbook to a closed workbook ?

MAS




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Write no closed workbook ?

It might just be easier to

Dim wkbk as Workbook
Application.ScreenUpdating = False
set wkbk = Workbooks.Open(Filename:="C:\Myfiles\Mybook.xls")
wkbk.worksheets(1).Range("A1").Value = Date
wkbk.close Savechanges:=True
Application.ScreenUpdating = True

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
Generally you don't unless the closed workbook is organized as a database.
then you may be able to do it using ADO.

http://support.microsoft.com/default...46&Product=xlw
How To Transfer Data from ADO Data Source to Excel with ADO

http://support.microsoft.com/default...73&Product=xlw
SAMPLE: ExcelADO Demonstrates How to Use ADO to Read and Write Data in

Excel
Workbooks

http://support.microsoft.com/default...19&Product=xlw
How To Use ADO with Excel Data from Visual Basic or VBA

--
Regards,
Tom Ogilvy


"MAS" wrote in message
...
Hi,

How do I write from one workbook to a closed workbook ?

MAS






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
How do I write to a closed work book as a "register" Kiwifella Excel Discussion (Misc queries) 1 May 28th 10 12:20 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM
Write to closed workbook code Todd Huttenstine[_3_] Excel Programming 4 May 4th 04 09:59 AM
Getting value from closed workbook Dyawlak Excel Programming 1 April 22nd 04 02:20 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 12:09 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"