Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Store cell data in a variable


Hello,

Does anyone know how to retrieve the value from a cell and store it i
a variable ?

What I want to do is, create a loop to look at the data in each cell i
row "C"
I want it to take that data in the first row of column "C" (which woul
be a date) and store it in a variable to use later or compare it wit
some other variable.

Thanks

--
snowin
-----------------------------------------------------------------------
snowing's Profile: http://www.excelforum.com/member.php...fo&userid=3457
View this thread: http://www.excelforum.com/showthread.php?threadid=54629

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Store cell data in a variable

Hi Snowing,

Try:

Dim myDate As Date

myDate = Cells(1, "C").Value


---
Regards,
Norman



"snowing" wrote in
message ...

Hello,

Does anyone know how to retrieve the value from a cell and store it in
a variable ?

What I want to do is, create a loop to look at the data in each cell in
row "C"
I want it to take that data in the first row of column "C" (which would
be a date) and store it in a variable to use later or compare it with
some other variable.

Thanks,


--
snowing
------------------------------------------------------------------------
snowing's Profile:
http://www.excelforum.com/member.php...o&userid=34576
View this thread: http://www.excelforum.com/showthread...hreadid=546294



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
Retrieving data from Excel and store it into string variable marsulein[_5_] Excel Programming 1 November 10th 04 01:43 AM
Retrieving data from Excel and store it into string variable marsulein[_4_] Excel Programming 1 November 9th 04 09:35 AM
Retrieving data from Excel and store it into string variable marsulein Excel Programming 2 November 9th 04 08:44 AM
Retrieving data from Excel and store it into string variable marsulein[_3_] Excel Programming 1 November 9th 04 04:47 AM
Retrieving data from Excel and store it into string variable marsulein[_2_] Excel Programming 1 November 9th 04 02:04 AM


All times are GMT +1. The time now is 01:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"