ConvertToLinkedDataType method

vanwooten

New Member
Joined
Dec 15, 2020
Messages
43
Office Version
  1. 365
Platform
  1. Windows
I have a table where the third column contains stock symbols that are converted into the stocks data type from 365. For the first two symbols entered (on rows 1 and 2 beneath the header) the user must enter the symbol, return to the cell and click the Stocks button on the data menu. The third entry and beyond are converted automatically by Excel with no code or formatting. I plan to compile this workbook into an exe that does not show the ribbon at all. I therefore want to automate this first two symbol conversion operation.



I found the method (in the title) to convert the cell but the symbol must be entered before the method is invoked. Do I have access to the method or property that Microsoft uses for that third symbol entry forward? If not, I guess I will need a macro for the worksheet change event as in:



Private Sub Worksheet_Change(ByVal Target As Range)

Dim ws As Worksheet
Set ws = Worksheets("Portfolio Trades")

?????. ConvertToLinkedDataType ServiceID:=268435456, LanguageCulture:="en-US"

End Sub



Where ????? = third cell in the bottom row of ws.ListObjects("Trades")



Thank You
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,215,432
Messages
6,124,860
Members
449,194
Latest member
HellScout

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