Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default update cells in unopened workbooks

hi all

is it possible to update the value of a cell in an unopened work book, im
sure i have read it somewhere but cant seem to get the code right. i seem to
remember you have to use the full path something like

c:myfolder\myworkbook\myworksheet\mycell.value=10

cant rememberif it requires application.execl in front of it

does anyone known how to do this as im feedup of waiting for workbooks to open

many thanks


pete
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default update cells in unopened workbooks

The old XLM language can retrieve a value from a closed workbook
(ExecuteExcel4Macro) and can be run via VBA, but it does not write to a
closed workbook.

Ron deBruin has a site which discusses using ADO to accomplish
reading/writing with closed files.
http://www.rondebruin.nl/ado.htm
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"pete the greek" wrote:

hi all

is it possible to update the value of a cell in an unopened work book, im
sure i have read it somewhere but cant seem to get the code right. i seem to
remember you have to use the full path something like

c:myfolder\myworkbook\myworksheet\mycell.value=10

cant rememberif it requires application.execl in front of it

does anyone known how to do this as im feedup of waiting for workbooks to open

many thanks


pete

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default update cells in unopened workbooks

thanks for the pointer, not sure if you mean its not possible to write to a
closed workbbok as rons page is about retrieving from a closed book,not quite
what i was looking for but some interesting stuff on rons page. im sure ill
be back there in the future. i also today found the text i had read and
believe i had miss read it anyway

thanks for taking the time to respond

"KC Rippstein" wrote:

The old XLM language can retrieve a value from a closed workbook
(ExecuteExcel4Macro) and can be run via VBA, but it does not write to a
closed workbook.

Ron deBruin has a site which discusses using ADO to accomplish
reading/writing with closed files.
http://www.rondebruin.nl/ado.htm
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"pete the greek" wrote:

hi all

is it possible to update the value of a cell in an unopened work book, im
sure i have read it somewhere but cant seem to get the code right. i seem to
remember you have to use the full path something like

c:myfolder\myworkbook\myworksheet\mycell.value=10

cant rememberif it requires application.execl in front of it

does anyone known how to do this as im feedup of waiting for workbooks to open

many thanks


pete

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default update cells in unopened workbooks

No, according to Ron you can use ADO to both read and write to closed files.
I've seen this topic specifically discussed in other forums, I just don't
know anything about ADO myself so unfortunately I cannot elaborate further.
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"pete the greek" wrote:

thanks for the pointer, not sure if you mean its not possible to write to a
closed workbbok as rons page is about retrieving from a closed book,not quite
what i was looking for but some interesting stuff on rons page. im sure ill
be back there in the future. i also today found the text i had read and
believe i had miss read it anyway

thanks for taking the time to respond

"KC Rippstein" wrote:

The old XLM language can retrieve a value from a closed workbook
(ExecuteExcel4Macro) and can be run via VBA, but it does not write to a
closed workbook.

Ron deBruin has a site which discusses using ADO to accomplish
reading/writing with closed files.
http://www.rondebruin.nl/ado.htm
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"pete the greek" wrote:

hi all

is it possible to update the value of a cell in an unopened work book, im
sure i have read it somewhere but cant seem to get the code right. i seem to
remember you have to use the full path something like

c:myfolder\myworkbook\myworksheet\mycell.value=10

cant rememberif it requires application.execl in front of it

does anyone known how to do this as im feedup of waiting for workbooks to open

many thanks


pete

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
Summary from unopened workbooks BNT1 via OfficeKB.com Excel Discussion (Misc queries) 9 October 1st 08 08:23 PM
insert rows and update linked cells in multiple workbooks [email protected] Excel Discussion (Misc queries) 1 April 2nd 07 10:37 PM
Getting two workbooks to update into one, damorrison Excel Discussion (Misc queries) 1 March 11th 06 06:20 PM
How can I update all workbooks in one go shrek Excel Worksheet Functions 1 November 26th 05 04:41 PM
Functions referencing unopened workbooks VB Newbie Excel Worksheet Functions 1 January 27th 05 01:11 AM


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