+ Reply to Thread
Results 1 to 7 of 7

vba value of column A of row of active cell

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    3

    vba value of column A of row of active cell

    I have a workbook with 2 worksheets, sheet1 and sheet2


    I am trying to create a vba module that will place in cell A1 of sheet1, the value of the cell comprising column a of the active cell's row in sheet 2.

    So for example if cell C50 of sheet2 was highlighted, and the value of A50 = 3/7/2013, cell A1 of sheet1 should = 3/7/2013.


    Any thoughts?

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: vba value of column A of row of active cell

    Do you want this to happen each time the user clicks on a different cell in Sheet2?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: vba value of column A of row of active cell

    no i would like to run the macro with a button

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: vba value of column A of row of active cell

    if the button is on sheet 2
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: vba value of column A of row of active cell

    Oops i was very close - i had this code
    Please Login or Register  to view this content.
    but the only mistake i did was run it when Sheet1 was active and not Sheet2.

    Thanks JP.

  6. #6
    Registered User
    Join Date
    03-07-2013
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: vba value of column A of row of active cell

    Thanks to you both!

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: vba value of column A of row of active cell

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

+ 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