ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

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

[分享]学习高手之作品(六)——销售回款分析图表

  [复制链接]

TA的精华主题

TA的得分主题

发表于 2006-7-3 09:59 | 显示全部楼层
本帖已被收录到知识树中,索引项:控件图表

怎么才能修改成适合自己用的系统,我研究了好几天还是不能调整到适合自己的系统阿

TA的精华主题

TA的得分主题

发表于 2006-7-7 08:43 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
en   众里寻他千百度阿

TA的精华主题

TA的得分主题

 楼主| 发表于 2006-7-7 14:00 | 显示全部楼层
QUOTE:
以下是引用dzz1001在2006-6-17 19:29:42的发言:
ListBox,ComboBox,OptionButton控件是怎么绑捆数据的,我看了很久还不知道是怎么绑捆的哦。

你要了解这些控件的使用,比如:

ComboBox

学习这些直接参考Excel中vba的帮助。

组合框控件、AddItem 方法、Picture 和 PicturePosition 属性示例

下例用组合框来显示控件的图片位置选项。每次用户单击列表选项,命令按钮上的图片和题注都将被更新。这个代码示例还使用了 AddItem 方法来填充组合框选项。

若要使用该示例,请将示例代码复制到某窗体的声明变量部分。请确保该窗体包含:

  • 名为 Label1 的标签。

  • 名为 CommandButton1 的命令按钮。

  • 名为 ComboBox1 的组合框。
Private Sub UserForm_Initialize()
    Label1.Left = 18
    Label1.Top = 12
    Label1.Height = 12
    Label1.Width = 190
    Label1.Caption = "Select picture placement " _ 
        & "relative to the caption."
    
    '把列表条目加入组合框。每一
    '条目的值符合组合框中
    '对应的 ListIndex 的值。
    ComboBox1.AddItem "Left Top"        'ListIndex = 0
    ComboBox1.AddItem "Left Center"     'ListIndex = 1
    ComboBox1.AddItem "Left Bottom"     'ListIndex = 2
    ComboBox1.AddItem "Right Top"       'ListIndex = 3
    ComboBox1.AddItem "Right Center"    'ListIndex = 4
    ComboBox1.AddItem "Right Bottom"    'ListIndex = 5
    ComboBox1.AddItem "Above Left"      'ListIndex = 6
    ComboBox1.AddItem "Above Center"    'ListIndex = 7
    ComboBox1.AddItem "Above Right"    'ListIndex = 8
    ComboBox1.AddItem "Below Left"      'ListIndex = 9
    ComboBox1.AddItem "Below Center"    'ListIndex = 10
    ComboBox1.AddItem "Below Right"    'ListIndex = 11
    ComboBox1.AddItem "Centered"        'ListIndex = 12
    '使用下拉列表
    ComboBox1.Style = fmStyleDropDownList     '组合框值是 ListIndex 值
    ComboBox1.BoundColumn = 0          
    '把组合框设置为第一个条目
    ComboBox1.ListIndex = 0
      
         
    ComboBox1.Left = 18
    ComboBox1.Top = 36
    ComboBox1.Width = 90
    ComboBox1.ListWidth = 90
    
    '初始化 CommandButton1
    CommandButton1.Left = 230
    CommandButton1.Top = 36
    CommandButton1.Height = 120
    CommandButton1.Width = 120
    
    '注意:确认引用的位图文件是
    '存在于系统中的,并在
    '文件名中包括路径
    CommandButton1.Picture = _ 
         LoadPicture("c:\windows\argyle.bmp")
    CommandButton1.PicturePosition = ComboBox1.Value
End Sub

Private Sub ComboBox1_Click()
    Select Case ComboBox1.Value
    Case 0  '上左
        CommandButton1.Caption = "Left Top"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionLeftTop
    
    Case 1  '中左
        CommandButton1.Caption = "Left Center"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionLeftCenter
            
    Case 2  '下左
        CommandButton1.Caption = "Left Bottom"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionLeftBottom
        
    Case 3  '上右
        CommandButton1.Caption = "Right Top"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionRightTop
    
    Case 4  '中右
        CommandButton1.Caption = "Right Center"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionRightCenter
    
    Case 5  '下右
        CommandButton1.Caption = "Right Bottom"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionRightBottom
    
    Case 6  '左上
        CommandButton1.Caption = "Above Left"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionAboveLeft
    
    Case 7  '中上
        CommandButton1.Caption = "Above Center"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionAboveCenter
        
    Case 8  '右上
        CommandButton1.Caption = "Above Right"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionAboveRight
    
    Case 9  '左下
        CommandButton1.Caption = "Below Left"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionBelowLeft
    
    Case 10 '中下
        CommandButton1.Caption = "Below Center"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionBelowCenter
    
    Case 11 '右下
        CommandButton1.Caption = "Below Right"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionBelowRight
    
    Case 12 '中
        CommandButton1.Caption = "Centered"
        CommandButton1.PicturePosition = _ 
            fmPicturePositionCenter
    
    End Select
    
End Sub
 
 

学习其他的控件类似。还可以在搜索“控件”其他的帖子!

[分享]学习高手之作品(六)——销售回款分析图表

[分享]学习高手之作品(六)——销售回款分析图表

TA的精华主题

TA的得分主题

发表于 2006-7-7 14:55 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
精英贴

TA的精华主题

TA的得分主题

发表于 2006-7-19 02:45 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2006-7-22 12:10 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
楼主这么好的东西怎么没有办法解压缩呢

TA的精华主题

TA的得分主题

发表于 2006-8-8 14:15 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
为什么下载不了啊

TA的精华主题

TA的得分主题

发表于 2006-8-29 14:54 | 显示全部楼层

太厉害拉!超强 呵呵

先下载拉

TA的精华主题

TA的得分主题

发表于 2006-8-31 13:43 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2006-8-31 15:34 | 显示全部楼层
看了好久,还没法全看清楚,因为很多单元格被锁定,这个处理设计摸班要花很长的时间啊,LZ真是有耐心啊,要用十几个表格,也要细心啊,佩服,支持
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

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

GMT+8, 2024-5-21 22:37 , Processed in 0.041372 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

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

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

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