WPS batch resize macro

Source: Internet
Author: User
1 sub batch adjust image size () 2 '3' modify image macro 4' macro recorded by zxz, time: 5 'batch adjust image size, avoid the picture being too large to show incomplete 6 7' loop image set 8 for each ishape in activedocument. inlineshapes 9' to restore the aspect ratio to 100% 10 ishape. scaleheight = 10011 ishape. scalewidth = 100' divide the Image Width by 10012 to get a width ratio of 13 myscale = 500/ishape. width14' if the obtained width ratio is less than 1, the image width exceeds 50015 if myscale <1 then16', the image width is reduced to 500, and the height is automatically adjusted to 17 ishape. scaleheight = mysize * 10018 ishape. scalewidth = myscale * 10019 end if20 next ishape21 22 end sub

 

WPS batch resize macro

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.