简体   繁体   English

VBA-Excel-使用不同的列宽显示一页纸

[英]VBA - Excel - Display one section of sheet using different column widths

I couldn't figure out how to word the question, so please comment if you have a better wording. 我不知道该如何措词,因此,如果您的措辞更好,请发表评论。

I am creating a report the has multiple sections, all displayed on one sheet. 我正在创建一个报告,该报告有多个部分,全部显示在一张纸上。 One of the sections need to be displayed at equal column widths, while the rest of the report has varying column widths. 其中一个部分需要以相等的列宽显示,而报告的其余部分具有变化的列宽。 What I would like to do is display this section as some sort of chart/table that will display as if it was part of a continuous report. 我想做的是将本节显示为某种图表/表格,将其显示为连续报告的一部分。 Should I be using listboxes or is there a better option? 我应该使用列表框还是有更好的选择?

Thanks for any help. 谢谢你的帮助。

I'm not sure I completely understand your question, but from what I do understand, maybe what you could do is put the part with the fixed column widths on another part of your sheet and then: 我不确定我是否完全理解您的问题,但是从我的理解中,也许您可​​以做的是将具有固定列宽的部分放在表格的另一部分上,然后:

  • Copy it 复制它
  • Go to where you want it in the report and Paste Special > Linked Picture (I) 转到报告中所需的位置,然后选择“ Paste Special >“ Linked Picture (I)

I think that would give you what you're looking to accomplish, otherwise, please clarify a bit more... 我认为这将为您提供您想要实现的目标,否则,请进一步说明一下...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VBA Excel - 同时更新不同工作表中的一列 - VBA Excel - Update one column in different sheet simultaneously Excel VBA 多表搜索使用一列中的数据 - Excel VBA Multiple Sheet Search using Data from one Column 使用Excel VBA一对一过滤列值(不同) - Filter column values (different) one by one using Excel VBA 使用VBA,如何突出显示一张纸上某一列中的列表中的值(如果该值存在于另一张纸的范围内) - Using VBA, how to highlight a value that is in a list in one column on one sheet if the value exists in range on a different sheet 如何使用Excel VBA将一张纸中的值分配给隐藏的纸中? (并跳过范围内的列?) - How to assign values from one sheet into hidden sheet using Excel VBA? (and skip a column within the range?) 使用VBA(Excel)在其他工作表上运行宏 - Run a Macro on a different sheet using VBA (Excel) 如何使用VBA将多个Excel工作表合并为一个Excel工作表 - How to combine multiple Excel sheet into one Excel sheet using VBA 使用VBA在一张Excel工作表中比较4列 - Compare 4 columns in one excel sheet using vba 使用 vba 自动过滤一列,其值来自不同工作表上的不同列 - Using vba to autofilter one column, with values from a different column on a different sheet Excel VBA将一列中所有使用的单元格复制/粘贴到另一张工作表 - Excel VBA Copy/Pasting all used cells in one column to a different sheet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM