+ Reply to Thread
Results 1 to 2 of 2

Macro: Retrieve value from website

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    13

    Macro: Retrieve value from website

    Good day

    A few months ago I used excel to keep track of some share prices for me. Basically I used a macro to get the value of a certain stock from the following website: http://www.sharenet.co.za/v3/sharesf...sname=&scode=x

    I have a list of shares in excel I keep track of and macro would simply retrieve the value from the website. Next to the share code I have a the formula: =GetValue()

    EXAMPLE:

    A (Code) B (Price)

    1 ANGSBE =GetValue(A1,"Sale")
    2 GFISBO =GetValue(A2,"Sale")
    .
    .
    .

    This method doesn't seem to work anymore for whatever reason. I was wondering if perhaps it might be a setting I changed? Someone from mr.excel was kind enough to write me the macro code a few months ago as I unfortunately have very little knowledge about macros. All I can think is that perhaps some of my security settings in excel changed or maybe the website URL has changed? I tried playing around with it a bit, but couldn't figure it out.

    The macro I used is as follows:

    Please Login or Register  to view this content.
    ASA is just another sharecode. Can someone please help?

    Thanks!
    Last edited by JBeaucaire; 03-15-2013 at 02:44 PM. Reason: Added code tags, as per forum rules. Don't forget!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro: Retrieve value from website

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I have added code tags for you this time.

    ===================
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).


    Here is the cross-post link: http://www.mrexcel.com/forum/excel-q...555-macro.html
    =============
    That's two forum rules broken in one post. Please take a moment to read the forum rules we all follow. (link above in the menu bar)
    Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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