+ Reply to Thread
Results 1 to 2 of 2

Store cell data in a variable

Hybrid View

  1. #1
    Registered User
    Join Date
    05-18-2006
    Posts
    26

    Store cell data in a variable

    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,

  2. #2
    Norman Jones
    Guest

    Re: Store cell data in a variable

    Hi Snowing,

    Try:

    Dim myDate As Date

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


    ---
    Regards,
    Norman



    "snowing" <snowing.28j45n_1148838901.5156@excelforum-nospam.com> wrote in
    message news:snowing.28j45n_1148838901.5156@excelforum-nospam.com...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1