How do you place a textbox object over a specific Cell when automating Excel?

后端 未结 2 941
囚心锁ツ
囚心锁ツ 2021-01-13 16:09

We are automating Excel using VB.Net, and trying to place multiple lines of text on an Excel worksheet that we can set to not print. Between these we would have printable re

2条回答
  •  迷失自我
    2021-01-13 16:22

    When you copy & paste a textbox, Excel will place the new textbox over whichever cell is currently selected. So you can achieve this very easily by simply using the VBA copy & paste commands. This can be particularly useful if you are going to be using a lot of very similar textboxes, as you are effectively creating a textbox template.

提交回复
热议问题