How to Read Data Type Stocks

OldSwimmer1650

New Member
Joined
Dec 3, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
1608347089933.png
1608347137558.png


Cells F13:F18 are created by = E13.[Ticker symbol] by using Data Types - Stocks

I'm writing VBA code to FIND a specific ticker symbol, say for example MRNA, in the range F13:F18

This is the code I have so far:


Sub FindIfNew()

Dim CheckCell As Range
Dim c As Range

Set c = Range("f13:f18")
Set CheckCell = c.Find("MRNA")
Debug.Print CheckCell.Address

End Sub



The code works if the stock symbols are typed in the cell, but doesn't work if the cell is generated by = E13.[Ticker symbol]

I'm assuming that the Data Type Stocks is the culprit.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How to Read Data Type Stocks
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How to Read Data Type Stocks
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Thank you for updating me on the procedures. I confess I didn't read the rules as I was in a hurry to get something completed. I know better... I'd don't want to waste peoples time, as these boards are invaluable. I'm going to post the same exact text on Excel Forum as I was bad there too. You want me to post a crosspost link to my apology there too? LOL
smile.gif


I appreciate your time very much!
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top