ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

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

[转帖] excelhome在股票中的应用摘录集中营(每次记录一点,学一点)

[复制链接]

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-17 11:47 | 显示全部楼层
【原帖】 股票EXCEL版
http://club.excelhome.net/thread-778829-1-1.html

胖哥看股.zip

213.29 KB, 下载次数: 235

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-19 17:38 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
【原帖】 [原创] Excel股票管理系统 -- Excel Stock 12.05.01(版本更新)
             http://club.excelhome.net/thread-821104-1-1.html

Excel_Stock_12.05.01.rar

136.6 KB, 下载次数: 222

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-20 21:00 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
本帖最后由 jinsha2002 于 2013-3-20 21:03 编辑

【原帖】 [求助] 字典引用(代替vlookup)结果不配套
         http://club.excelhome.net/thread-982042-1-1.html

        http://club.excelhome.net/thread-981950-1-1.html

问题 字典查找股票评级.rar (63.16 KB, 下载次数: 119)


TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-20 21:27 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
   【原帖】 [已解决] 据股票中的ddx,ddy,ddz值来排序速度最快的VBA精品代码
           http://club.excelhome.net/thread-879001-1-1.html
           

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-23 17:14 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
【原帖】 [求助] 有朋友要的提取大智慧软件历史数据的代码
         http://club.excelhome.net/thread-988226-1-1.html
  1. Sub GetStockAllData()
  2.      On Error Resume Next
  3.         StockCode = "600000"
  4.      If Len(StockCode) <> 6 Then Exit Sub
  5.     If Left(StockCode, 2) = 60 Then
  6.         openfile = "E:\DZH5\DATA\SHase\Day" & StockCode & ".day"
  7.     Else
  8.         openfile = "E:\DZH5\DATA\SZnse\Day" & StockCode & ".day"
  9.     End If
  10. Sheets(1).Select
  11.     Range("A:P").ClearContents
  12.     Dim File2 As Integer
  13.     Dim b As MyType
  14.     Dim DayNum
  15.     file1 = FreeFile
  16.     Open openfile For Binary Access Read As #file1
  17.     DayNum = LOF(file1) / 40
  18.     ReDim arr(DayNum, 7)
  19.     'i = 1
  20.     Do While Not EOF(file1)
  21.     Get #file1, , b
  22.     arr(i, 0) = b.a1
  23.     arr(i, 1) = b.a2 / 1000
  24.     arr(i, 2) = b.a3 / 1000
  25.     arr(i, 3) = b.a4 / 1000
  26.     arr(i, 4) = b.a5 / 1000
  27.     arr(i, 5) = b.a6 / 1000
  28.     arr(i, 6) = b.a7
  29.     i = i + 1
  30.     Loop
  31.     Sheet1.Range("a2").Resize(UBound(arr), 7) = arr
  32.     [a1:g1] = Split("日期,开盘价,最高价,最低价,收盘价,成交金额,成交量", ",")
  33.     Columns("b:f").NumberFormat = "0.00"
  34.     Close #file1
  35. End Sub
复制代码
插入模块,加入如下代码
Type MyType
    a1 As Long '标示码
    a2 As Long '日期
    a3 As Long '开盘价
    a4 As Long '最高价
    a5 As Long '最低价
    a6 As Long '收盘价
    a7 As Long '成交金额
    a8 As Long '成交量
    a9 As Long
    a10 As Long
    End Type

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-23 17:19 | 显示全部楼层
【原帖】 [转帖] 用vba自动登电子邮箱的代码
         http://club.excelhome.net/thread-960323-1-1.html

Sub Goto163()
With CreateObject("InternetExplorer.Application")
.Visible = True
.navigate "http://mail.163.com"
Do Until .Readystate = 4
DoEvents
Loop
.Document.Forms(0).All(9).Value = "myusername"
.Document.Forms(0).All(13).Value = "mypassword"
.Document.Forms(0).All(35).Click
End With
MsgBox "Ok"
End Sub
或者:
Sub Goto163()
With CreateObject("InternetExplorer.Application")
.Visible = True
.navigate "http://mail.163.com"
Do Until .Readystate = 4
DoEvents
Loop
.Document.Forms(0).All("username").Value = "myusername"
.Document.Forms(0).All("password").Value = "mypassword"
.Document.Forms(0).All("登录邮箱").Click
End With
MsgBox "Ok"
End Sub
附:
Sub show163tags()
Dim i As Byte
With CreateObject("InternetExplorer.Application")
.Visible = True
.navigate "http://mail.163.com"
Do Until .Readystate = 4
DoEvents
Loop
On Error Resume Next
For i = 1 To 100
If Len(.Document.Forms(0).All(i).Name) > 0 Then Debug.Print "i=" & i; "  name=" & .Document.Forms(0).All(i).Name
Next
End With
MsgBox "ok"
End Sub
返回:
i=9  name=username
i=13  name=password
i=17  name=selType
i=24  name=remUser
i=26  name=secure
i=35  name=登录邮箱
i=40  name=登录网盘
i=62  name=style
i=63  name=product

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-23 17:27 | 显示全部楼层
【原帖】 [求助] 导入该网站的历史数据?
       http://club.excelhome.net/thread-959543-1-1.html

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-24 10:27 | 显示全部楼层
本帖最后由 jinsha2002 于 2013-3-24 10:31 编辑

[原创] 网页采集(网页抓取)教程第一课-用XMLHTTP获取数据
          http://club.excelhome.net/thread-893760-1-1.html
      
          http://club.excelhome.net/thread-902266-1-1.html


TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-24 14:23 | 显示全部楼层
【原帖】 [求助] VBA做图表一列.rar
              http://club.excelhome.net/thread-906105-1-1.html

VBA做图表一列.rar

13.25 KB, 下载次数: 102

TA的精华主题

TA的得分主题

 楼主| 发表于 2013-3-24 16:29 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
【原帖】股票数据,跨工作表查询提取数据
        http://club.excelhome.net/thread-790168-1-1.html

跨表查询SQL2011-11-22.rar

64.3 KB, 下载次数: 112

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

关闭

最新热点上一条 /1 下一条

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

GMT+8, 2024-4-25 07:56 , Processed in 0.049500 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

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

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

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