Results 1 to 25 of 25

Thread: MS Stock Quote [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Resolved MS Stock Quote [RESOLVED]

    Is there a way to update the stock quotes from a macro without having to press the update button on the toolbar?

    Also, is there a way to disable the advertisement that pops up after it updates?

    Thanks!
    Last edited by GSIV; Mar 1st, 2005 at 12:20 PM. Reason: Resolved

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    You may be able to do it using using the Timer function and the DoCmd object to
    execute the menu item for updating the stock quote.

    From the help file...

    VB Code:
    1. Dim PauseTime, Start, Finish, TotalTime
    2. If (MsgBox("Press Yes to pause for 5 seconds", 4)) = vbYes Then
    3.     PauseTime = 5    ' Set duration.
    4.     Start = Timer    ' Set start time.
    5.     Do While Timer < Start + PauseTime
    6.         DoEvents    ' Yield to other processes.
    7.     Loop
    8.     Finish = Timer    ' Set end time.
    9.     TotalTime = Finish - Start    ' Calculate total time.
    10.     MsgBox "Paused for " & TotalTime & " seconds"
    11. Else
    12.     End
    13. End If
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    Thanks RobDog for the response. I'm lost. The vba stuff I can find regarding DoCmd gives examples for Access. I've never even heard of this object before, much less know how to use it to pass information to StockQuote. Do you have anything specific?

    Thanks for your time.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Sorry about that. I had just answered a thread on Access and I was still in Access mode

    I post something in a min.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Found it. If you record a macro doing your stock quote refresh/update you can then run this macro from the Run command like so.
    VB Code:
    1. mySum = Application.Run("MYCUSTOM.XLM!My_Func_Sum", 1, 5)
    2. MsgBox "Macro result: " & mySum
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    The macro recorder will not record the process; at least I don't know how to make it do so. I have no problem with recording macros, it just won't record this particular function. The stock quotes add-in is available directly from MS: http://www.microsoft.com/downloads/d...displaylang=EN

    In addition, I have also tried the research task pane version and cannot get it to record a macro either.
    Attached Images Attached Images  

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    In that case you need to use the CommandBars collection and automate the .Execute method of the
    particular button that gets the update.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    RobDog, you are blowing me away. I know a little bit, but you are way above my understanding.

    Are you using the MSQuotes add-in yourself? I am hoping that someone who uses it might have already figured out how to automate the update function and clear the advertisement screen.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Sorry, I will try better to explain it. The toolbar that is called - ???. You can find it when you right click
    the menu bars. It will show a check mark next to the ones that are currently being displayed.
    Once we have the name of the toolbar we can find the button that does the update. Then we can click it programmatically.

    Or you can use this procedure to print out a listing of all the toolbars in Excel to the immediate window behind Excel in the VBA IDE.

    VB Code:
    1. Private Sub PrintToolBars()
    2.     Dim i As Integer
    3.     For i = 1 To Excel.CommandBars.Count
    4.         Debug.Print Excel.CommandBars(i).Name
    5.     Next
    6. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    Ok- I'm with you again. Thanks for dragging me along!

    The toolbar is called "MSN Money Stock Quotes"

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Ok, since I dont have the add-in (just dont want to install it) you need to debug this, although its
    probably very close if not working. I dont know where or how you want to automate this, but the
    command button click was just for looks

    VB Code:
    1. Option Explicit
    2. 'msoControlButton or msoControlCustom in the .FindControl method
    3. 'Depends on how they created the toolbar. Try either and check the spelling
    4. 'on the update button, must match exactly.
    5. Private Sub Command1_Click()
    6.     Dim oApp As Excel.Application
    7.     Dim oWB As Excel.Workbook
    8.     Dim oToolBar As Office.CommandBar
    9.     Dim oUpdateBtn As Office.CommandBarButton
    10.    
    11.     Set oApp = New Excel.Application
    12.     oApp.Visible = True
    13.     Set oWB = oApp.Workbooks.Open("C:\YourWorkBook.xls")
    14.     Set oToolBar = oWB.CommandBars.Item("MSN Money Stock Quotes")
    15.     If TypeName(oToolBar) <> "Nothing" Then
    16.         Set oUpdateBtn = oToolBar.FindControl(msoControlButton, oToolBar.Control("Update").ID)
    17.         oUpdateBtn.Execute
    18.     Else
    19.         'Toolbar not loaded
    20.     End If
    21. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    A couple of snags, but this is promising for sure! This stuff is amazing. Thank God for experts!

    1. Runtime error 91: object variable or with block variable not set
    VB Code:
    1. Set oToolBar = ActiveWorkbook.CommandBars.Item("MSN Money Stock Quotes")
    Same thing with the original code...
    VB Code:
    1. Set oToolBar = oWB.CommandBars.Item("MSN Money Stock Quotes")
    I verified that my commandbar name was exactly right. I ran your PrintToolBars routine and it is there. I also right-clicked on the commandbar and selected customize | toolbar and it was exactly the same name.


    2. I changed the line with 'oToolBar.Control' to 'oToolBar.Controls' because it wouldn't run otherwise.

    I am going to run this from within an existing worksheet and call it as a sub when the workbook (or worksheet?) opens. I modified the code to try to reflect my purpose. However, the original code still generates the error 91 message too. Just so you know what I did, here is my modified version:

    VB Code:
    1. Public Sub StockUpdate()
    2.    
    3.     Dim oToolBar As Office.CommandBar
    4.     Dim oUpdateBtn As Office.CommandBarButton
    5.    
    6.     Set oToolBar = ActiveWorkbook.CommandBars.Item("MSN Money Stock Quotes")
    7.    
    8.     If TypeName(oToolBar) <> "Nothing" Then
    9.         Set oUpdateBtn = oToolBar.FindControl(msoControlButton, oToolBar.Controls("Update Quotes").ID)
    10.         oUpdateBtn.Execute
    11.     Else
    12.         'Toolbar not loaded
    13.     End If
    14.  
    15. End Sub

    Thanks for your review.
    Last edited by GSIV; Feb 25th, 2005 at 02:51 AM.

  13. #13

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    RobDog,

    I don't know if it'll help, but I ran the CommandBarDocumenter and CommandBarControlDocumenter subroutines mentioned on the MSDN website:
    http://msdn.microsoft.com/library/de...ce05022002.asp. It provides a lot more detail about the command bar than I could ever relay otherwise. Perhaps it will help you to sort this out. I have attached it here if you care to see it.
    Attached Files Attached Files

  14. #14
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Yes, that was a good link. Seems like we need to make a few corrections, but were on the right track.
    I think I may have to break down and install it for a faster solution. Be back in a few minutes with the results.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  15. #15
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Update button automated!!!
    VB Code:
    1. Public Sub StockUpdate()
    2.    
    3.     Dim oToolBar As Office.CommandBar
    4.     Dim oUpdateBtn As Office.CommandBarButton
    5.    
    6.     Set oToolBar = Application.CommandBars("MSN Money Stock Quotes")
    7.    
    8.     If TypeName(oToolBar) <> "Nothing" Then
    9.         Set oUpdateBtn = oToolBar.FindControl(msoControlButton, oToolBar.Controls("Update Quotes").ID)
    10.         oUpdateBtn.Execute
    11.     Else
    12.         'Toolbar not loaded
    13.     End If
    14.  
    15. End Sub
    Time taken to figure it out - 5 minutes. Priceless
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  16. #16
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Aww, quotes can only be updated once every five minutes.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  17. #17
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Though there was something wrong. We were getting the Insert Quote button. I updated the code to get the
    correct button. I even thought that if I forced the button to be enabled that we could update it before the 5 min
    timeout. Its enabled but doesnt return a quote unless the 5 min timeout has passed

    VB Code:
    1. Public Sub StockUpdate()
    2.    
    3.     Dim oToolBar As Office.CommandBar
    4.     Dim oUpdateBtn As Office.CommandBarButton
    5.    
    6.     Set oToolBar = Application.CommandBars("MSN Money Stock Quotes")
    7.    
    8.     If TypeName(oToolBar) <> "Nothing" Then
    9.         Set oUpdateBtn = oToolBar.FindControl(msoControlButton, 1, "RefreshButton:MSN MoneyCentral Stock Quote Add-In", , True)
    10.         oUpdateBtn.Enabled = True 'Enabled but if les then 5 mins. still wont return results :(
    11.         oUpdateBtn.Execute
    12.     Else
    13.         'Toolbar not loaded
    14.     End If
    15.  
    16. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  18. #18

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    Indeed, it is now automating the commandbar; BUT, and I can't figue out why, it is running the insert stock quote function. As soon as I ran the code, the "insert" section of the toolbar highlighted and now it stays that way. I even uninstalled the add-in and reinstalled it. Same thing. If I click on "update" though, it works. How can this be? You told it, Update!!!!
    Attached Images Attached Images  

  19. #19

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    Crossed paths! LOL!

  20. #20
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    I think we can dismiss the popup ad form that popups after the quote is received. It would take a few APIs and a
    timer to check for the form every 250ms or so. The FindWindow and SendMessage APIs are what
    you need. I will post something in the morning. I'm tired and going to bed. Later.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  21. #21

    Thread Starter
    Addicted Member GSIV's Avatar
    Join Date
    Jun 2002
    Location
    Texas, USA
    Posts
    213

    Re: MS Stock Quote

    Yes, this seems to work perfectly. You sure put the time in on this one. Thanks for your patience! It's great to know that there are forums like this one to seek out real help. You're the best.

  22. #22
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote

    Thanks for the Rep and praise

    Got to log off, ... cant do it ... must try harder ... "Click" ...................
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  23. #23
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: MS Stock Quote [RESOLVED]

    This is pretty nifty (found this on a search). Where do you put the code in a spreadsheet (yes, I'm a newbie)?

  24. #24
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: MS Stock Quote [RESOLVED]

    You can place it in a Module or in ThisWorkbook class.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  25. #25
    New Member
    Join Date
    Nov 2006
    Posts
    6

    Re: MS Stock Quote [RESOLVED]

    Thanks, works great.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width