Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Pending Publication Date: 2021-02-12
SHANDONG NORMAL UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventors of the present disclosure have found that although the connection function of Excel itself (the connection with arrows is only set differently at the endpoints) is relatively convenient, the alignment methods in the current version only have alignment to the grid and alignment to graphics; and alignment to the network The function can only be automatically aligned to the four corners of a certain cell, and it cannot be automatically aligned for other positions; if you do not use the built-in alignment of Excel, when using a line to connect cells, you need to fine-tune the position of the endpoint Align it with the boundaries of the cells that need to be connected. When there are many connections, this operation step will become very time-consuming and reduce work efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Excel connection endpoint automatic alignment method and device
  • Excel connection endpoint automatic alignment method and device
  • Excel connection endpoint automatic alignment method and device

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an Excel connecting line endpoint automatic alignment method and device, and the method comprises the following steps: finding all connecting lines in a page in an embedded VBAof Excel through employing the attributes of a graphic object, and obtaining a connecting line set; judging a starting point and an ending point of a certain connecting line through a graph overturning function and obtaining coordinates; traversing all cells in a preset range, calculating the distance between the current connection endpoint and the specified position of the boundary of the cells,and finding the cell with the minimum distance; updating the starting point and the ending point of the connecting line to be coordinates of the boundary point of the nearest cell, deleting the old connecting line and redrawing the connecting line by using the updated coordinates; traversing the connection line set, and aligning all the connection lines until the connection line set is empty; by traversing the connecting lines and the cells and judging the starting point and the terminal point, redrawing of the existing connecting lines is achieved, and automatic alignment of the connecting lines is achieved.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular to a method and device for automatic alignment of Excel connection endpoints. Background technique [0002] The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art. [0003] As a commonly used spreadsheet software, Excel not only has powerful cell-based data calculation capabilities, but also its convenient graphics insertion and editing functions are often applied to various data visualization fields, such as using basic graphics to represent different elements Or use arrows and lines to indicate the direct relationship between cells, etc. [0004] The inventors of the present disclosure have found that although the connection function of Excel itself (the connection with arrows is only set differently at the endpoints) is relatively convenient, the alignment methods in the curre...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/177G06F3/0484G06F16/28G06F16/26
CPCG06F3/04845G06F16/26G06F16/284G06F40/177
Inventor 郑自然
Owner SHANDONG NORMAL UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products