Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Initialize an excel datasheet

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Initialize an excel datasheet

Either save it in the Templates directory or in the StartUp directory.

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
Excel datasheet needs dividing into more datasheets arran tw Excel Discussion (Misc queries) 6 April 22nd 08 02:02 PM
Using excel built-in form, through VBA, script to initialize it Alfredo Excel Programming 0 July 5th 07 04:02 PM
Userform Initialize & Command Button, Excel 2000 & 2003 jfcby[_2_] Excel Programming 4 February 19th 07 12:53 AM
Automate Excel to powerpoint - Graphs along with Datasheet (not workbook) Hari Prasadh Charts and Charting in Excel 4 February 17th 05 02:44 PM
SetFocus does not show cursor in initialize (Excel VBA) Tamara Plute Excel Programming 2 January 27th 05 03:54 PM


All times are GMT +1. The time now is 11:17 AM.

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"