尝试为每个会话创建多个Excel工作表时出错 [英] Error trying to create multiple Excel worksheets per session

查看:88
本文介绍了尝试为每个会话创建多个Excel工作表时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

单击命令按钮时,是否可以生成多个Excel工作表?

例如

我搜索审计部门的2个名称并单击打印命令按钮记录将在Excel中打印。

再次,如果我搜索其他2个名称,如果我单击打印命令按钮报告将不会打印。并给出错误我必须关闭程序并再次加载程序。

如果是,你能告诉我怎么做吗?

当我执行代码或第二张Excel表格时,它会给出错误

Can I generate more than 1 Excel sheet when a command button is clicked?
For eg
I search for 2 names of audit dept and click print command button where records will be printed in Excel.
Again if I search for other 2 names and if I click print command button reports will not be printed.and gives error I have to close the program and load the program again.
If yes can you tell me how?
When I write a code when it executes or second Excel sheet it gives error

推荐答案


我可以在点击命令按钮时生成多于1​​张excel表

例如

i搜索审计部门的2个名称并单击打印命令按钮,其中记录将在excel中打印

如果我搜索其他2个名称并且如果我单击打印命令按钮报告将不会被打印。给出错误我必须关闭程序并再次加载程序

如果是的话,你可以告诉我怎么做。

当我发出电子邮件或第二张表格时它会给出错误


-------------------------------------------------- ------------------------------
can i generate more than 1 excel sheets when a command button is clicked
for eg
i search for 2 names of audit dept and click print command button where records will be printed in excel
again if i search for other 2 names and if i click print command button reports will not be printed.and gives error i have to close the program and load the program again
if yes can u tell me how.
hen i wrte a cde whenit eecutes or second exce sheet it gives error

--------------------------------------------------------------------------------



你能解释一下细节吗? ?

VB版本?

你的意思是报告或excel表,然后有版本?

Can you explain detail?
VB Version?
you mean Report or excel sheet, then there versions?



你能详细解释一下吗?

VB版本?

你的意思是报告或excel表,然后有版本?
Can you explain detail?
VB Version?
you mean Report or excel sheet, then there versions?



我使用的是VB6。我已经在VB6中编码生成Excel工作表并将Access中的数据放到Excel工作表中。

第一次将数据放入Excel工作表中。

但是当我想创建它给出错误
对象变量或没有设置块变量

请求帮助。非常紧急。

谢谢

I am using VB6. I have coded in VB6 to generate an Excel sheet and put the data from Access to Excel sheet.
First time data will be placed in Excel sheet appropriately.
But again when I want to create it gives error
Object variable or with block variable not set
please help.Very urgent.
Thanks


我想我们需要查看代码。听起来好像你在启动时在你的程序中创建了一个Excel对象,然后在使用它之后释放它(Set ... = Nothing),所以你再也不能使用它了。
I think we''ll need to see the code. It sounds as though you have created an Excel object in your program at startup or something, then released it (Set ... = Nothing) after using it, so then you can''t use it again.


这篇关于尝试为每个会话创建多个Excel工作表时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆