Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-13-2018, 01:21 PM
macropod's Avatar
macropod macropod is offline VBA copy paste picture into Word TextBox Problem Windows 7 64bit VBA copy paste picture into Word TextBox Problem Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You really don't need textboxes for the picture insertion - you can insert and resize your pictures quite easily without them. That said, if the purpose of the textboxes is to serve as placeholders, you'd do better to use bookmarks or, better yet, to use tables with cells that have been given the required fixed dimensions; any pictures you insert into such cells will automatically resize to fit the space available whilst maintaining the correct aspect ratio. That, in turn, obviates the need for any resizing code.

To set the fixed:
• row height, use Table Tools>Layout>Properties>Row>Specify Height>Exactly.
• column width, first uncheck the 'automatically resize to fit contents' option under Table Tools>Layout>Properties>Table>Options. Then set the preferred column width under Table Tools>Layout>Properties>Columns.
You might also want to set the cell margins to 0 all round. It's also a good idea to format the cell paragraph with 0 before/after spacing.

For an automated approach to this, see: https://www.msofficeforums.com/word-...html#post47919. Obviously, though, if you're only inserting the pics one at a time, the code would need to be modified to suit.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
paste, textbox, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
wrapping text around a picture within a textbox ketanco Word 3 04-06-2016 11:07 AM
Making an HTML Textbox Clickable (+ copy, paste, etc.) Jonas.t1989 Outlook 0 08-25-2015 07:11 AM
Problem with copy paste ayiru Word 4 03-30-2012 04:27 AM
VBA copy paste picture into Word TextBox Problem Copy/Paste from Paint to Word - There is a problem saving the file one2three Word 1 10-26-2011 07:35 AM
Word Copy Paste Problem... haxmania1 Word 1 07-30-2009 06:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft