Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2011, 02:56 AM
styleruk styleruk is offline Insert Picture with standard size Windows XP Insert Picture with standard size Office 2007
Novice
Insert Picture with standard size
 
Join Date: Nov 2011
Posts: 2
styleruk is on a distinguished road
Default Insert Picture with standard size

HI



I can't seem to find a way in Word 2007 to set a standard for inserting pics. That is; Size and border. So I thought I'd record a macro.

1) Can't right click a picture to select border and shading when recording a macro
2) When the picture is selected, the border and shading button is greyed out! so I can't use the button to add border even when not recording a macro...

Any ideas?
Reply With Quote
  #2  
Old 11-03-2011, 04:34 AM
macropod's Avatar
macropod macropod is offline Insert Picture with standard size Windows 7 64bit Insert Picture with standard size Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi styleruk,

You could use a macro like:
Code:
Sub InsertPicture()
With Application.Dialogs(wdDialogInsertPicture)
  If .Show = -1 Then
    With Selection
      .MoveStart wdCharacter, -1
      With .InlineShapes(1)
        .LockAspectRatio = True
        .Width = InchesToPoints(3)
      End With
      .Collapse
    End With
  End If
End With
End Sub
This macro runs the normal InsertPicture dialogue, but then resizes the inserted pic to 3in wide and scales the height to suit. You can change the '3', use .Height instead of .Width and use 'CentimetersToPoints' instead of 'InchesToPoints', if you prefer. You could assign the macro to a keyboard shortcut and/or the QAT.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-09-2014, 09:14 AM
Bughi Bughi is offline Insert Picture with standard size Windows 7 64bit Insert Picture with standard size Office 2007
Novice
 
Join Date: Feb 2014
Posts: 2
Bughi is on a distinguished road
Default for your consideration

I am a beginner in my line of my work and it would very helpful if you could insert in the above macro how to add a border to the inserted picture and/or insert multiple pictures at once.
Thank you in advance.
Reply With Quote
  #4  
Old 02-09-2014, 02:16 PM
macropod's Avatar
macropod macropod is offline Insert Picture with standard size Windows 7 32bit Insert Picture with standard size Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

There a many border possibilities. The following should give you a starting point:
Code:
Sub InsertPicture()
With Application.Dialogs(wdDialogInsertPicture)
  If .Show = -1 Then
    With Selection
      .MoveStart wdCharacter, -1
      With .InlineShapes(1)
        .LockAspectRatio = True
        .Width = InchesToPoints(3)
        With .Borders
          .OutsideColor = wdColorBlack
          .OutsideLineStyle = wdLineStyleThickThinLargeGap
          .OutsideLineWidth = wdLineWidth300pt
        End With
      End With
      .Collapse
    End With
  End If
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 02-10-2014, 09:09 AM
Bughi Bughi is offline Insert Picture with standard size Windows 7 64bit Insert Picture with standard size Office 2007
Novice
 
Join Date: Feb 2014
Posts: 2
Bughi is on a distinguished road
Default

I sincerely appreciate your help. Thank you.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Picture with standard size Insert Picture changes colors rowan.bradley Drawing and Graphics 6 05-18-2013 05:26 PM
Insert Picture with standard size Macro for Picture Insert rfhall50 Word VBA 2 10-25-2010 12:41 PM
Insert Picture with standard size Can I insert a picture into a picture ? alexcalgary Drawing and Graphics 2 10-16-2010 03:29 PM
Problem w/ Format Picture (size) John Woram PowerPoint 0 01-31-2010 10:29 AM
Insert Picture with standard size Wrong Picture Size Roger A Firth Drawing and Graphics 6 11-01-2009 10:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:21 PM.


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