Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default write to/read from add-ins

I want to store some data in the XLA sheets and then use it in my
program. Is it possible to write/read the data using VBA? If so, how?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default write to/read from add-ins

In the XLA, use code like:
Dim myValue As Integer

To read a value:
myValue = ThisWorkbook.Worksheets("Sheet1").Range("A1").Valu e

To write a value:
myValue = 3
ThisWorkbook.Worksheets("Sheet1").Range("A1").Valu e = myValue

HTH,
Bernie


"abartkowski" wrote in
message ...
I want to store some data in the XLA sheets and then use it in my
program. Is it possible to write/read the data using VBA? If so,

how?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from

http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default write to/read from add-ins

as long as the xla is loaded:

workbooks("MyXLa.xls").Worksheets("Sheet1").Range( "A1").Value = 21

--
Regards,
Tom Ogilvy


"abartkowski" wrote in message
...
I want to store some data in the XLA sheets and then use it in my
program. Is it possible to write/read the data using VBA? If so, how?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default write to/read from add-ins

for example:

? workbooks("ATPVBAEN.xlA").Sheets(1).Name
REG
?
workbooks("ATPVBAEN.xla").Sheets("Reg").Cells.spec ialcells(xlConstants).Addr
ess
$B$1:$B$2,$A$25:$B$25,$A$27:$A$33,$A$44,$A$46,$A$5 0,$A$60,$B$64,$A$65:$A$195
,$A$202
? workbooks("ATPVBAEN.xla").Sheets("Reg").Range("A25 ").Value
AnalysisPath


"Tom Ogilvy" wrote in message
...
as long as the xla is loaded:

workbooks("MyXLa.xls").Worksheets("Sheet1").Range( "A1").Value = 21

--
Regards,
Tom Ogilvy


"abartkowski" wrote in message
...
I want to store some data in the XLA sheets and then use it in my
program. Is it possible to write/read the data using VBA? If so, how?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from

http://www.ExcelForum.com/





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
Not sure how to write a formula that I need! Please read! Julie Excel Worksheet Functions 9 January 7th 09 07:32 PM
read only and write only zilah New Users to Excel 2 July 8th 07 03:01 PM
I have a read only xl file, I need it to be read and write drama queen Excel Discussion (Misc queries) 3 July 1st 06 12:25 AM
Read-write/Read-only Jillian Excel Discussion (Misc queries) 4 February 16th 06 05:26 PM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM


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