Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 2828|回复: 10

[已解决][公告]请高手看一下问题

[复制链接]
发表于 2009-10-28 14:06 | 显示全部楼层 |阅读模式

一个问题搞不懂,请高手指导!

 

o3vHeNPr.rar (73.73 KB, 下载次数: 0)
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2009-10-28 14:10 | 显示全部楼层
回复

使用道具 举报

发表于 2009-10-28 14:20 | 显示全部楼层

第一问:用textbox1.text=format(数字,"0.00")

第二问:With Sheets("记录").Range("A1").End(xlDown)改成With Sheets("记录").[A65536].End(xlup)

回复

使用道具 举报

发表于 2009-10-28 16:24 | 显示全部楼层

学习一下
回复

使用道具 举报

 楼主| 发表于 2009-10-28 20:01 | 显示全部楼层

谢谢Dj_soo,解决了一个问题,第一个仍没解决,请在VBE中做实例吧,谢谢!

 

LT64d7Jq.rar (73.9 KB, 下载次数: 0)
回复

使用道具 举报

发表于 2009-10-28 20:42 | 显示全部楼层

改这个

Private Sub ComboBox1_DropButtonClick()
If ComboBox1.Value <> "" Then
Dim Ir As Integer
Dim rng As Range
Dim 信息 As String
    On Error Resume Next
   

    With Sheets("信息")
        Label15 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 1)
        Label16 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 2)
        Label17 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 3)
        Label11 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 4)
        TextBox1 = Format(.Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 5), "0.00")
    End With
End If
End Sub

回复

使用道具 举报

发表于 2009-10-28 20:44 | 显示全部楼层

QUOTE:
以下是引用amulee在2009-10-28 20:42:00的发言:

改这个

Private Sub ComboBox1_DropButtonClick()
If ComboBox1.Value <> "" Then
Dim Ir As Integer
Dim rng As Range
Dim 信息 As String
    On Error Resume Next
   

    With Sheets("信息")
        Label15 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 1)
        Label16 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 2)
        Label17 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 3)
        Label11 = .Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 4)
        TextBox1 = Format(.Cells(.Range("A2:A100").Find(ComboBox1, , , xlWhole).Row, 5), "0.00")
    End With
End If
End Sub

学习   [em04]
回复

使用道具 举报

发表于 2009-10-28 20:44 | 显示全部楼层    本楼为最佳答案   

3JyT8ftd.rar (29.38 KB, 下载次数: 12)

回复

使用道具 举报

 楼主| 发表于 2009-10-28 21:35 | 显示全部楼层

谢谢Dj_soo和amulee两位高手!总算解决问题了.两位都该得最佳答案,但是只有一个最佳答案不能分,请不要见怪呀.

[此贴子已经被作者于2009-10-28 21:35:50编辑过]
回复

使用道具 举报

发表于 2009-10-28 22:07 | 显示全部楼层

[已解决][公告]请高手看一下问题

[已解决][公告]请高手看一下问题

学习一下!

回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-6-3 14:52 , Processed in 0.298755 second(s), 10 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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