English 中文(简体)
Excel VBA 改变县级面积和地点
原标题:Excel VBA change button size and location

我如何改变一个纽芬兰的大小和位置?

最佳回答

几乎有<代码>活性Sheet.Shapes(”Button 1”。

如果您的<代码>dim,即Shape的变数,并将此吨位转让给它,你可使用星座探索现有特性。 届时将发现<代码>。 Height,.Width,.Left,。 Top

Dim btn As Shape
Set btn = ActiveSheet.Shapes("Button 1")
btn.Height = 50
btn.Width = 100
问题回答

Steven,为了在Excel学习基本成绩指标,我建议试用Record Macro。 其位置因您的“Excel”版本而有所不同(2007年,您需要激活在座椅上的开发商)。

With this button turned on, use the standard menus to do whatever you wanted to do in the first place (in this case, make a custom sized button). Then stop the recording and look at the auto-generated code you just made.





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签