View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] aidan.heritage@virgin.net is offline
external usenet poster
 
Posts: 244
Default Initialize an excel datasheet

On 1 Aug, 13:27, wrote:
Hi,

I need to read a file when a datasheet is opened, and store the value
read within a global variable (in Sheet1). How do I do this?

Thanks,

Aine.


It depends on what you mean by read a file - did you want to open it
for input, is it an excel sheet? Something like

open "c:\test.txt" for input as #1

input 1, a
close
range("C1").value=a