+ Reply to Thread
Results 1 to 7 of 7

VBA-Show cell value in column (A) when i select row

  1. #1
    Registered User
    Join Date
    11-30-2014
    Location
    Antakya
    MS-Off Ver
    2003
    Posts
    4

    VBA-Show cell value in column (A) when i select row

    Hi All,
    I'm trying to to get the hold of this issue, I know it basic VBA but I'm not an expert.
    could anyone help me?
    here is my dilemma:
    I would like to show the number from a specific row that correspond with the selected cell.
    for example I have values in column A, I would like to get the value from column A that correspond to the cell that i selected.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: VBA-Show cell value in column (A) when i select row

    What do you mean by "show the number"

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    11-30-2014
    Location
    Antakya
    MS-Off Ver
    2003
    Posts
    4

    Re: VBA-Show cell value in column (A) when i select row

    I have numbers in Column A, and what I would like to achieve is: whenever I select a cell from column B and beyond, I would like to get the number from Column A that correspond to the selected cell.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: VBA-Show cell value in column (A) when i select row

    I understand what value you're interested in. My question was more about what exactly do you mean by "show" and "get". Those terms are ambiguous.

    The code above shows the value from Column A in a message box.

    This gets the value and puts it in the variable x.
    x = Range("A" & ActiveCell.Row).Value

  5. #5
    Registered User
    Join Date
    11-30-2014
    Location
    Antakya
    MS-Off Ver
    2003
    Posts
    4

    Re: VBA-Show cell value in column (A) when i select row

    Ahhh. Sorry, im new to the VBA terms.
    what i meant by "show" and "get" is to write the value from column A into the corresponding cell which I selected

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: VBA-Show cell value in column (A) when i select row

    • Right-click on the sheet tab
    • Select View Code from the pop-up context menu
    • Paste the code from below in the VBA editor


    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-30-2014
    Location
    Antakya
    MS-Off Ver
    2003
    Posts
    4

    Re: VBA-Show cell value in column (A) when i select row

    Thanks a lot AlphaFrog, you just saved me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 01-23-2015, 04:00 AM
  2. [SOLVED] One TextBox Show Column and the other show Cell address Solved by : ragulduy
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2014, 05:17 AM
  3. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  4. Replies: 0
    Last Post: 04-11-2013, 02:09 PM
  5. Replies: 10
    Last Post: 07-12-2010, 08:55 AM
  6. Show Userform on Cell Select
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2009, 10:48 AM
  7. Select a Cell to show the last entry in a column
    By tallpaul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2007, 03:56 PM

Tags for this Thread

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