VBA Excel数据表不显示正确的输入和字段 [英] VBA Excel dataform not displaying the right input and fields

查看:201
本文介绍了VBA Excel数据表不显示正确的输入和字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  Sub CoverageBssEntry()$ b我有以下VBA代码,应该显示另一个隐藏的表格中的数据。 
$ b Application.ScreenUpdating = False
表格(myhiddensheet)。选择
范围(myTable [#All])。选择
ActiveSheet.ShowDataForm

End Sub

当我运行它时,数据表不包含标签和输入框的这个表。



任何帮助是非常感激,因为它是驱动我坚果!我唯一的其他选择是花时间来构建定制的用户表单,而这样做完美。

解决方案

使用:

  ActiveSheet.Cells(x,y)。选择

之前调用.ShowDataForm,像jiffy一样工作!


I have the following VBA code, which should show a dataform from another hidden sheet.

Sub CoverageBssEntry()

   Application.ScreenUpdating = False
   Sheets("myhiddensheet").Select
   Range("myTable[#All]").Select
   ActiveSheet.ShowDataForm

End Sub

When I run this, the data form does not containt the labels and inputboxes of this table.

Any help is really appreciated, because it is driving me nuts! My only other option is to spend time to build custom made user forms, while this would do perfectly.

解决方案

The fix is to use:

ActiveSheet.Cells(x,y).Select 

prior calling the .ShowDataForm, works like a jiffy!

这篇关于VBA Excel数据表不显示正确的输入和字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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