Home Software Tutorial Office Software How to fine-tune the boxes in excel table

How to fine-tune the boxes in excel table

Jan 19, 2024 am 08:33 AM

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

5 Things You Can Do in Excel for the Web Today That You Couldn't 12 Months Ago 5 Things You Can Do in Excel for the Web Today That You Couldn't 12 Months Ago Mar 22, 2025 am 03:03 AM

Excel web version features enhancements to improve efficiency! While Excel desktop version is more powerful, the web version has also been significantly improved over the past year. This article will focus on five key improvements: Easily insert rows and columns: In Excel web, just hover over the row or column header and click the " " sign that appears to insert a new row or column. There is no need to use the confusing right-click menu "insert" function anymore. This method is faster, and newly inserted rows or columns inherit the format of adjacent cells. Export as CSV files: Excel now supports exporting worksheets as CSV files for easy data transfer and compatibility with other software. Click "File" > "Export"

How to Use LAMBDA in Excel to Create Your Own Functions How to Use LAMBDA in Excel to Create Your Own Functions Mar 21, 2025 am 03:08 AM

Excel's LAMBDA Functions: An easy guide to creating custom functions Before Excel introduced the LAMBDA function, creating a custom function requires VBA or macro. Now, with LAMBDA, you can easily implement it using the familiar Excel syntax. This guide will guide you step by step how to use the LAMBDA function. It is recommended that you read the parts of this guide in order, first understand the grammar and simple examples, and then learn practical applications. The LAMBDA function is available for Microsoft 365 (Windows and Mac), Excel 2024 (Windows and Mac), and Excel for the web. E

How to Create a Timeline Filter in Excel How to Create a Timeline Filter in Excel Apr 03, 2025 am 03:51 AM

In Excel, using the timeline filter can display data by time period more efficiently, which is more convenient than using the filter button. The Timeline is a dynamic filtering option that allows you to quickly display data for a single date, month, quarter, or year. Step 1: Convert data to pivot table First, convert the original Excel data into a pivot table. Select any cell in the data table (formatted or not) and click PivotTable on the Insert tab of the ribbon. Related: How to Create Pivot Tables in Microsoft Excel Don't be intimidated by the pivot table! We will teach you basic skills that you can master in minutes. Related Articles In the dialog box, make sure the entire data range is selected (

If You Don't Use Excel's Hidden Camera Tool, You're Missing a Trick If You Don't Use Excel's Hidden Camera Tool, You're Missing a Trick Mar 25, 2025 am 02:48 AM

Quick Links Why Use the Camera Tool?

Use the PERCENTOF Function to Simplify Percentage Calculations in Excel Use the PERCENTOF Function to Simplify Percentage Calculations in Excel Mar 27, 2025 am 03:03 AM

Excel's PERCENTOF function: Easily calculate the proportion of data subsets Excel's PERCENTOF function can quickly calculate the proportion of data subsets in the entire data set, avoiding the hassle of creating complex formulas. PERCENTOF function syntax The PERCENTOF function has two parameters: =PERCENTOF(a,b) in: a (required) is a subset of data that forms part of the entire data set; b (required) is the entire dataset. In other words, the PERCENTOF function calculates the percentage of the subset a to the total dataset b. Calculate the proportion of individual values ​​using PERCENTOF The easiest way to use the PERCENTOF function is to calculate the single

You Need to Know What the Hash Sign Does in Excel Formulas You Need to Know What the Hash Sign Does in Excel Formulas Apr 08, 2025 am 12:55 AM

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

How to Format a Spilled Array in Excel How to Format a Spilled Array in Excel Apr 10, 2025 pm 12:01 PM

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,

How to Use the PIVOTBY Function in Excel How to Use the PIVOTBY Function in Excel Apr 11, 2025 am 12:56 AM

Quick Links The PIVOTBY Syntax

See all articles