ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 Excel Home精品图文教程库
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
300集Office 2010微视频教程 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
楼主: neemx

[原创] 【股票大涨】分享实时股票行情自动更新【快下载吧】

  [复制链接]

TA的精华主题

TA的得分主题

发表于 2017-5-19 00:43 | 显示全部楼层
win7运行excel2010发现报错了,“系统未找到指定的资源”,.send标黄,如何解决?

Public Sub TimerProc(Optional sA2 As Integer = 30)
    Dim Q As Long, dm As String, url As String, sSp() As String
    [E1].Value = [E1].Value + 1
    For Q = 4 To Range("A1").CurrentRegion.Rows.Count
        VBA.DoEvents
        dm = Cells(Q, 1).Value
        If Val(dm) < 600000 Then
            url = "http://qt.gtimg.cn/q=ff_sz" & dm
        Else
            url = "http://qt.gtimg.cn/q=ff_sh" & dm
        End If
        With CreateObject("msxml2.xmlhttp")
            .Open "get", url, False
            .send
            sSp = Split(.responsetext, "~")
            If UBound(sSp) > 1 Then
                Cells(Q, 2).Value = sSp(12)       '名称
                Cells(Q, 9).Value = sSp(1)       '现价

                Cells(Q, 10).Value = sSp(2)       '昨收
                Cells(Q, 11).Value = sSp(3)       '金开
                Cells(Q, 12).Value = sSp(4)      '涨跌
                Cells(Q, 13).Value = sSp(5)      '涨跌幅
                Cells(Q, 14).Value = sSp(6)      '最高
                Cells(Q, 15).Value = sSp(7)     '最低
                Cells(Q, 16).Value = sSp(8)     '振幅
                Cells(Q, 17).Value = sSp(9)     '换手率
                'Cells(q, 18).Value = ssp(39)     '市盈率
               'Cells(q, 14).Value = ssp(36)     '成交量
                'Cells(q, 15).Value = ssp(37)     '成交量
               'Cells(q, 16).Value = ssp(44)     '流通市值
                'Cells(q, 17).Value = ssp(45)     '总市值
                'Cells(q, 18).Value = ssp(47) '涨停
                'Cells(q, 19).Value = ssp(48) '跌停

TA的精华主题

TA的得分主题

发表于 2017-5-19 00:46 | 显示全部楼层
excel2010运行出错,停留在send处,如何解决?系统未找到指定资源

Public Sub TimerProc(Optional sA2 As Integer = 30)
    Dim Q As Long, dm As String, url As String, sSp() As String
    [E1].Value = [E1].Value + 1
    For Q = 4 To Range("A1").CurrentRegion.Rows.Count
        VBA.DoEvents
        dm = Cells(Q, 1).Value
        If Val(dm) < 600000 Then
            url = "http://qt.gtimg.cn/q=ff_sz" & dm
        Else
            url = "http://qt.gtimg.cn/q=ff_sh" & dm
        End If
        With CreateObject("msxml2.xmlhttp")
            .Open "get", url, False
            .send
            sSp = Split(.responsetext, "~")
            If UBound(sSp) > 1 Then
                Cells(Q, 2).Value = sSp(12)       '名称
                Cells(Q, 9).Value = sSp(1)       '现价
               
                Cells(Q, 10).Value = sSp(2)       '昨收
                Cells(Q, 11).Value = sSp(3)       '金开
                Cells(Q, 12).Value = sSp(4)      '涨跌
                Cells(Q, 13).Value = sSp(5)      '涨跌幅
                Cells(Q, 14).Value = sSp(6)      '最高
                Cells(Q, 15).Value = sSp(7)     '最低
                Cells(Q, 16).Value = sSp(8)     '振幅
                Cells(Q, 17).Value = sSp(9)     '换手率
                'Cells(q, 18).Value = ssp(39)     '市盈率
               'Cells(q, 14).Value = ssp(36)     '成交量
                'Cells(q, 15).Value = ssp(37)     '成交量
               'Cells(q, 16).Value = ssp(44)     '流通市值
                'Cells(q, 17).Value = ssp(45)     '总市值
                'Cells(q, 18).Value = ssp(47) '涨停
                'Cells(q, 19).Value = ssp(48) '跌停

TA的精华主题

TA的得分主题

发表于 2017-6-1 11:45 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2017-6-18 17:31 | 显示全部楼层
楼主,可以看看这个,参考下,Excel 股票行情,用VBA取多个股票实时股价、进行技术分析
http://club.excelhome.net/thread-523995-1-1.html
(出处: ExcelHome技术论坛)

TA的精华主题

TA的得分主题

发表于 2017-6-18 17:34 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
我没看出来,数据放哪里,也没有资金情况
我还想要个交易明细表,按笔的,也不知道如何弄

TA的精华主题

TA的得分主题

发表于 2017-6-21 15:57 | 显示全部楼层
老师,你好,能抓取市净率和每股净资产吗?感激不尽!!!!!

TA的精华主题

TA的得分主题

发表于 2017-6-21 16:37 | 显示全部楼层
老师,能加入支持ETF吗?如501050

TA的精华主题

TA的得分主题

发表于 2017-7-8 22:37 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2017-8-2 10:02 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2017-11-14 10:54 | 显示全部楼层
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-5-23 20:38 , Processed in 0.041854 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表