Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Reading data from an Excel cell

Hi,

How would I retrieve data from a specific?

I am trying to write a program to extract the information from a
variety of cells, so I need a command which automates the whole
process. That is, I need to be able to refer to a cell using variables
as opposed to "A2".

Any help would be appreciated.

cheers

- D

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Reading data from an Excel cell

the basic syntax for referring to a cell is:

Dim a
a = range("A1").value
or
a = range("A1:C15").value

If you want to refer the a cell in a particular sheet:
a = worksheets("Sheet1").range("A1").value

If you want to refer the a cell in a particular sheet in a specific workbook:
a = workbooks("Book1.xls").worksheets("Sheet1").range( "A1").value

Regards,
Edwin Tam

http://www.vonixx.com


"den1s" wrote:

Hi,

How would I retrieve data from a specific?

I am trying to write a program to extract the information from a
variety of cells, so I need a command which automates the whole
process. That is, I need to be able to refer to a cell using variables
as opposed to "A2".

Any help would be appreciated.

cheers

- D


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Reading data from an Excel cell


That helps me too, thanks, but now how do I search for a specific text
string (taken from a text box on a user form) in that range?

Kristen


--
Kristen
------------------------------------------------------------------------
Kristen's Profile: http://www.excelforum.com/member.php...o&userid=33199
View this thread: http://www.excelforum.com/showthread...hreadid=531402

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
Reading Data from another workbook... depending on variable in a cell? Rob Moyle Excel Discussion (Misc queries) 4 March 13th 06 04:21 PM
Reading data from a cell to a text box Aaron1978[_9_] Excel Programming 3 March 7th 06 04:05 PM
reading data from a range into a cell brya6347[_2_] Excel Programming 1 February 17th 05 05:32 AM
Reading more than one set of data from a single cell Broadsider Excel Programming 2 November 14th 04 09:50 PM
reading data from com port into 2 different cell locations. Neil K Excel Programming 0 September 30th 04 12:26 PM


All times are GMT +1. The time now is 05:58 PM.

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"