Results 1 to 3 of 3

Thread: [RESOLVED] Get Cell value using cell address

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Resolved [RESOLVED] Get Cell value using cell address

    hi guys, how to get the cell value given a particular cell address like: $A$29
    Thanks.
    The taller the bamboo grows the lower it bends...

  2. #2
    Fanatic Member
    Join Date
    Jul 2006
    Location
    Anchorage, Alaska
    Posts
    545

    Re: Get Cell value using cell address

    If you are using VBA in Microsoft Excel then the following will store the value of the cell. You will need to place this in a Sub, either in the weeksheet, or a new Module.

    Code:
    Dim myValue as string
    myValue=Range("$A$29").Value
    To learn more about Excel VBA, the easiest way is to record a macro, and just start doing things in excel. Excel will create code for you, that you can review later to understand how to perform certain tasks/steps/functions.

    • Macro's are located at: Tools > Macro.
    • To record one select "Record New Macro"
    • Make sure you Stop recording when you are done.
    • To easily access the recorded macro Hit Alt+F11 to open the VB-Editor.


    If you meant as a formula rather than VBA Code, simply reference the cell with =

    Code:
     =$A$29
    Please RATE posts, click the RATE button to the left under the Users Name.

    Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.


    "As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2009
    Posts
    233

    Re: Get Cell value using cell address

    thanks.. rack
    The taller the bamboo grows the lower it bends...

Posting Permissions

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



Click Here to Expand Forum to Full Width