+ Reply to Thread
Results 1 to 6 of 6

Get Value From Cell

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Get Value From Cell

    I am needing to capture the text from all the cells in column B. Sample data reads like this
    Blue
    Red
    Green
    Pink
    Orange

    Psuedocode would be
    Get value from B2
    Debug.Print value
    Next value

    What is VBA syntax for this?

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Get Value From Cell

    Hello jo15765,

    I am needing to capture the text from all the cells in column B. Sample data reads like this
    Where do you want to capture the text to, or where or how would you like it displayed?
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Get Value From Cell

    Please Login or Register  to view this content.
    But like Winon mentioned, I guess you want the result pasted somewhere.
    Where oh where will that be though

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Get Value From Cell

    You could also have it like this,

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Get Value From Cell

    Thank the both of you for a response. What my long term goal is to read the cell value (which I now have examples of doing such) and use that as the worksheet name to hyperlink to. I am googling on how to do this exactly, but I see that it can be done. My data is similar to this set-up
    Blue 16

    So I have a worksheet named Blue - and I want the number 16 to be a hyperlink to the worksheet Blue.

  6. #6
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Get Value From Cell

    This is invalid syntax, but how would I modify it to work?
    Please Login or Register  to view this content.

+ 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. [SOLVED] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. return multiple header cell values into one cell concatenated based on a cell value
    By anchuri_chaitanya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-13-2016, 10:27 PM
  3. [SOLVED] Month and days cell drag butt want to skip merger cell (or next cell)
    By gondal in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-30-2016, 04:18 AM
  4. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  5. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  6. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  7. Replies: 1
    Last Post: 11-03-2012, 09:05 PM

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