Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Put Value in Close Excel

Hi,

I've found this wonderful code from John's website. Which retrieve a
value from a closed workbook.

http://j-walk.com/ss/excel/eee/eee009.txt

However, I need a code to do the opposite. Eg: To Put or Write a value
to a closed workbook.

Is there a way?

Thanks.

JL
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Put Value in Close Excel

you can't do that
your code would need to open the workbook then save/close it

dim wb as workbook
dim sWBname as string
sWBname = "{full path and name}"
set wb=WorkbooksOpen(sWBname )
' do something to it
wb.worksheets("Sheet1").Range("A1")=Date
wb.Close True ' true saves, false doesn't save
set wb = Nothing ' cleanup



wrote in message
...
Hi,

I've found this wonderful code from John's website. Which retrieve a
value from a closed workbook.

http://j-walk.com/ss/excel/eee/eee009.txt

However, I need a code to do the opposite. Eg: To Put or Write a value
to a closed workbook.

Is there a way?

Thanks.

JL


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Put Value in Close Excel

Hi,

Opening and Closing Workbook takes a long time.
I need to update 3000 closed workbooks.. :(

Can't ExecuteExcel4Macro function be use to input data to closed
Workbook ?

Thanks.
JL
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
why do all excel worksheets/workbooks close when I close one? Penny Excel Discussion (Misc queries) 1 November 29th 06 03:49 AM
In Before Close Sub ActiveWorkBook.Close(False) repeat procedure [email protected] Excel Programming 5 September 26th 06 03:11 PM
Not close thead when I close excel wakeup[_3_] Excel Programming 0 December 5th 05 08:57 AM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM


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