首先,你有正确的想法,即有一个数据表和一个以适当格式显示所需数据的精度报告表。
I 不能简单地将电池从数据表到报告表,因为有些报告有20个浏览点,有些是8个左右。
Im not sure what you mean by this, are you saying that the rows on the data sheet can grow and shrink in size? Or are you saying you want the end user to be able to select the rows they want on the report? In other words what determines which rows you want on the report?
除此以外,首先,你只想与细胞价值合作,这样,在你的报告表上复制这些数值时,就会保留。
就数据转让而言,根据你对上述问题的答复,有若干方法使用真菌。
- Advance filter the rows based on a criteria (using the copy to another location)
- Copy all rows the user has selected (should be no need to use a loop, For Each Row etc)
- Copy the rows based on a user input box where the user enters the rows required.
我建议复制所有栏目,然后隐藏你不需要的栏目:
Worksheets("Report").Range("B:B,D:E").EntireColumn.Hidden = True