How to fine-tune the boxes in excel table
How to fine-tune the boxes in the excel table
I recommend a method, using VBA. Assume that the shape is in sheet1 and is named Rectangle 1. The following settings are exactly equal, and can also be set according to percentages, etc. If setting in batches, a loop can be used.
1
2
3
4
worksheets(1).shapes("rectangle 1").left=worksheets(1).cells(1,1).left
worksheets(1).shapes("rectangle 1").top=worksheets(1).cells(1,1).top
worksheets(1).shapes("Rectangle 1").width=worksheets(1).cells(1,1).width
worksheets(1).shapes("Rectangle 1").height=worksheets(1).cells(1,1).height
Excel EXCEL How to set functions in numerical adjustment buttons
It seems that you are using the [Digital Adjustment Knob] in the [Control Toolbox]
Of course you need to set the link when setting. For example, if you want to display the results in A1, fill in after [LinkedCell]: A1
It is recommended that you use [Spinner] in [Form], the settings here are more intuitive!
Of course, you also need to set [Cell Link], which is the cell in which you want to display the data. For example, if you want to display it in A1, fill in [Cell Link]: A1
As for the [multiple step sizes] problem you mentioned, we can use VBA to program it in the control event of the [Digital Adjustment Knob]!
You can also "find another way" and use formulas to solve it! Take the method of [fine-tuning items] as an example:
Right click [Set Control Format] [Control]:
Minimum value: 0
Maximum value: 51
Step size: 1
Cell link: Z1
Sure
We write the formula in cell A1:
=IF(Z1=0,0,(Z1 9)*100)
How to create dynamic table headers in Excel to improve work efficiency
If you can make a dynamic header, make all the parts of the title that need to be changed into cell references. As long as you change one place, all the titles will change together, which is much more convenient. Later, after trying to achieve this goal:
1. Create table title initialization interface
For the convenience of operation, we first insert a new worksheet and name it "Initialization". Enter the text prompt "Please enter the unit name:" in cell C7, so that cell D7 can be used to enter the unit name.
Next, right-click the toolbar and select the "Form" command to open the "Form" toolbar. Enter "Time:" in cell C9, and cell D9 is used to display the year in the title. Click the [Spinner] button in the "Form" toolbar and draw a spinner object immediately behind cell D9. Similarly, draw a spinner box immediately behind cell F9 to adjust the month in the table title.
Enter the words "year" and "month" in cells E9 and G9 respectively, and set them to right alignment.
Right-click "Spinner 1" and select the "Set Control Format" command. The "Object Format" dialog box will open and switch to the "Control" tab. Enter a default year such as "2005" in the "Current value" box, enter the upper and lower limits of the year in the "Minimum value" and "Maximum value" boxes, "Step size" is "1", and in the "Cell link ” box, enter the absolute address of the year cell to be displayed, such as “$D$9”. After the setting is completed, click the [OK] button, so that spinner 1 and cell D9 are linked. Similarly, you can link "Spinner 2" and cell F9. Note that the maximum and minimum values are limited by the month itself.
2. Set table title
Open the "Overtime Record" worksheet, enter the formula "=Initialization! D7&Initialization! D9&"Year"&Initialization!F9&"Month"&"Overtime Record"" in the title position of the table, and press the Enter key ( The final effect cannot be seen at this time), set the format of the title. Similarly, the titles of other tables can be made one by one with just a few changes.
3. Debugging table title
After the above operations are completed, we can start debugging. Return to the "Initialization" table, enter the school name and select a certain year and month. At this time, return to other worksheets and we can see the complete table title.
It should be noted that the date function can also be used to automatically change the title according to the system time, but it is not convenient to adjust to a previous year or month.
The above is the detailed content of How to fine-tune the boxes in excel table. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Quick link Why should tables be named in Excel How to name a table in Excel Excel table naming rules and techniques By default, tables in Excel are named Table1, Table2, Table3, and so on. However, you don't have to stick to these tags. In fact, it would be better if you don't! In this quick guide, I will explain why you should always rename tables in Excel and show you how to do this. Why should tables be named in Excel While it may take some time to develop the habit of naming tables in Excel (if you don't usually do this), the following reasons illustrate today

Excel Overflow Range Operator (#) enables formulas to be automatically adjusted to accommodate changes in overflow range size. This feature is only available for Microsoft 365 Excel for Windows or Mac. Common functions such as UNIQUE, COUNTIF, and SORTBY can be used in conjunction with overflow range operators to generate dynamic sortable lists. The pound sign (#) in the Excel formula is also called the overflow range operator, which instructs the program to consider all results in the overflow range. Therefore, even if the overflow range increases or decreases, the formula containing # will automatically reflect this change. How to list and sort unique values in Microsoft Excel

Use formula conditional formatting to handle overflow arrays in Excel Direct formatting of overflow arrays in Excel can cause problems, especially when the data shape or size changes. Formula-based conditional formatting rules allow automatic formatting to be adjusted when data parameters change. Adding a dollar sign ($) before a column reference applies a rule to all rows in the data. In Excel, you can apply direct formatting to the values or background of a cell to make the spreadsheet easier to read. However, when an Excel formula returns a set of values (called overflow arrays), applying direct formatting will cause problems if the size or shape of the data changes. Suppose you have this spreadsheet with overflow results from the PIVOTBY formula,

This tutorial shows you how to quickly apply, modify, and remove Excel table styles while preserving all table functionalities. Want to make your Excel tables look exactly how you want? Read on! After creating an Excel table, the first step is usual

This tutorial explains how to use MATCH function in Excel with formula examples. It also shows how to improve your lookup formulas by a making dynamic formula with VLOOKUP and MATCH. In Microsoft Excel, there are many different lookup/ref

Quick Links The AGGREGATE Syntax

The tutorial shows how to compare text strings in Excel for case-insensitive and exact match. You will learn a number of formulas to compare two cells by their values, string length, or the number of occurrences of a specific character, a
