Excel connection endpoint automatic alignment method and device
An automatic alignment and excel technology, applied in the computer field, can solve the problems of inability to automatically align, reduce work efficiency, and time-consuming operation steps, and achieve the effect of improving drawing efficiency, high scalability, and simple and easy-to-understand core code.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 As shown, Embodiment 1 of the present disclosure provides an Excel connection endpoint automatic alignment method, which is executed in the embedded VBA of Excel, and includes the following steps:
[0041] Use the properties of the graphic object to find all the connections in the page and get the collection of connections;
[0042] Judge the start point and end point of a certain line through the graph flip function and get the coordinates;
[0043] Traverse all the cells in the preset range, and calculate the distance between the endpoint of the current connection and the specified position of the cell boundary, and find the cell with the minimum distance;
[0044] Update the start and end points of the connection to the coordinates of the border point of the nearest cell, delete the old connection and redraw the connection with the updated coordinates;
[0045] Traverse the wire collection and perform alignment on all wires until the wire collectio...
Embodiment 2
[0070] Embodiment 2 of the present disclosure provides an Excel connection endpoint automatic alignment device, including a processor and a display module connected to the processor, the processor is equipped with Excel software, and the display module is used for Excel interface display, and the processor executes as follows Auto alignment method:
[0071] In the embedded VBA of Excel, use the graphic object properties to find all the connections in the page, and get the connection set;
[0072] Judge the start point and end point of a certain line through the graph flip function and get the coordinates;
[0073] Traverse all the cells in the preset range, and calculate the distance between the endpoint of the current connection and the specified position of the cell boundary, and find the cell with the minimum distance;
[0074] Update the start and end points of the connection to the coordinates of the border point of the nearest cell, delete the old connection and redraw ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com