Put Value in Close Excel

P

Patrick Molloy

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
 
J

julian.tklim

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top