如何在工作表中创建链接文本框?(How to create Linked textbox in worksheet?)

编程入门 行业动态 更新时间:2024-10-24 14:18:03
如何在工作表中创建链接文本框?(How to create Linked textbox in worksheet?)

我想在Excel工作表中有一个文本框或标题,它显示此工作表中某个单元格的值。 可能吗?

I want to have a textbox or a caption in an excel worksheet, that displays the value of some cell from this worksheet. Is it possible?

最满意答案

可以使用文本框控件,正如兰斯建议的那样,但还有其他更好的方法:

如果您创建自动形状文本框(插入 - >图片 - >自选图形),您可以通过选择它将其链接到单个单元格,然后在公式栏中键入(例如)“= A1”。 然后,您可以根据需要对其进行格式化和定位。

这很酷,但不是很酷:如果你复制一系列单元格,然后在选择编辑菜单时按住shift键,你会看到一个选项“粘贴图片链接”。 如果这样做,它会粘贴单元格的图片,这些单元格在单元格值更改时会更新。 正如迈克尔凯恩从未说过的那样,“并不是很多人都知道这一点”。

注意:我在这里谈论的是Excel 2003.我认为它仍然适用于2007年,尽管各种命令的位置等都会发生变化。

You can use a textbox control as Lance suggests, but there are other, perhaps better ways:

If you create an autoshape textbox (Insert->Picture->AutoShapes) you can link it to a single cell by selecting it, then type (for example) "=A1" into the formula bar. You can then format and position it as you like.

That's pretty cool, but not as cool as this: if you copy a range of cells, and then hold down the shift key as you choose the Edit menu, you'll see an option "Paste picture link". If you do this, it pastes a picture of the cells which gets updated when the cell values change. As Michael Caine never said, "not a lot of people know that".

Note: I'm talking here about Excel 2003. I assume it still works in 2007, though the location of the various commands, etc. will have changed.

更多推荐

本文发布于:2023-08-05 04:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428611.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本框   链接   如何在   工作   worksheet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!