设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: Bluelost
打印 上一主题 下一主题

怎么打开工作簿时显示登录窗体隐藏工作簿

[复制链接]
11#
发表于 2005-7-8 17:46:00 | 只看该作者
以下是引用Bluelost在2005-7-5 8:52:00的发言:

我在登陆按钮设置显示工作表不成功啊!

Private Sub CommandButton1_Click()

If TextBox1.Text = "bluelost" Then

If TextBox2.Text = "001" Then

Application.Visible = True

UserForm1.Visible = False

End If

End If

End Sub

一点登陆就提示说:函数或标记为限制的,或函数使用了Visual Basic 不支持的自动化(Autamation)类型



根据你的代码,是不是要同时满足TextBox1.text="bluelost"和TextBox2.text="001"这两个条件时,才显示EXCEL工作簿。如果是这样的话,条件句应改为:

If TextBox1.Text = "bluelost" and TextBox2.Text = "001" then Application.Visible = True

'两个条件都同时满足时,才执行application.visible=true
12#
发表于 2009-11-19 16:54:25 | 只看该作者
学习一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-14 20:50 , Processed in 0.112552 second(s), 23 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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