Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2015, 05:22 PM
anu_gv anu_gv is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word Office 2007
Novice
Screen Shot Alignment in Word
 
Join Date: Sep 2015
Posts: 6
anu_gv is on a distinguished road
Default Screen Shot Alignment in Word

Hi,

I am new to this forum, I searched this forum about my query but I couldn't find the solution.



I have 100 page document (Word 2007) contains multi-level steps, in each page I have minimum 2 screenshots I would like to align all off them with same indent on left and right. Is there a way to automate all the pages same.

NOTE: Since I have multilevel steps like 1.1, 1.1.2, 1.1.2.1, 1.1.2.1.2, etc., I am not able to align all the pages with same indentation.

Can anyone suggest to resolve this issue.

Regards
Anu

Last edited by anu_gv; 09-23-2015 at 05:26 PM. Reason: Added MS Word version
Reply With Quote
  #2  
Old 09-23-2015, 05:40 PM
macropod's Avatar
macropod macropod is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word 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

If they're all formatted as in-line with text, simply attaching them to a paragraph at the relevant level would achieve that (e.g. via the use of manual line breaks to separate the picture from the text). For anything else, you'd probably need a macro to do all the processing. However, regardless of macros and depending on the size of the pictures, such indentation is liable to result in pictures extending into the margin area - and even off the page. Do you really want that?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-23-2015, 05:58 PM
anu_gv anu_gv is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word Office 2007
Novice
Screen Shot Alignment in Word
 
Join Date: Sep 2015
Posts: 6
anu_gv is on a distinguished road
Default

Hi Paul,

Thx for your response.

I would like to have all of them in the same size of screen shots with same left and right indent. At present I am manually reducing the sizes from individual pages, if there is anyway I can keep my screenshots starts at 2.5cm on left side and provide space of 2.5cm on right side.

Regards
Anu
Reply With Quote
  #4  
Old 09-23-2015, 07:22 PM
macropod's Avatar
macropod macropod is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word 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

It's easy enough to use a macro to format all the images so they're 5cm less than the page width or the margin width, then centre them horizontally on the page. For example, if the screen shots have been inserted as floating images:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long, sWdth As Single
With ActiveDocument.Range
  With .Sections(1).PageSetup
    sWdth = .PageWidth - .LeftMargin - .RightMargin - .Gutter - CentimetersToPoints(5)
  End With
  For i = 1 To .ShapeRange.Count
    With .ShapeRange(i)
      .LockAspectRatio = True
      .Width = sWdth
      .RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
      .Left = wdShapeCenter
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
The same kind of thing can be done with screen shots that have been inserted in-line with the text but, depending on what else is in the paragraphs they're attached to, it might mess with some of your formatting.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 09-24-2015, 02:55 AM
anu_gv anu_gv is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word Office 2007
Novice
Screen Shot Alignment in Word
 
Join Date: Sep 2015
Posts: 6
anu_gv is on a distinguished road
Default Screen Shot Alignment in Word

Hi Paul,

I will try and let you know if my screen shot are aligned or not. Hopefully it doesn't mess up the other formats.

Regards
Anu
Reply With Quote
  #6  
Old 09-24-2015, 03:42 AM
anu_gv anu_gv is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word Office 2007
Novice
Screen Shot Alignment in Word
 
Join Date: Sep 2015
Posts: 6
anu_gv is on a distinguished road
Default Screen Shot Alignment in Word

Hi Paul,

I Created document with 4 multi-level steps (1, 1.1, 1.1.1, 1.1.1.1 - 1.1.1.4), at the 4th level step (1.1.1.4, 2.1.1.4, 3.1.1.4 & 4.1.1.4) I have inserted the screen shot. I copied the code you have given and pasted into visual basic, I ran the macro by clicking "Run Sub/UserForm, the screen shot is out of range. Not Sure What is the mistake I am doing in Running Macro.

Regards
Anu
Reply With Quote
  #7  
Old 09-24-2015, 06:06 PM
anu_gv anu_gv is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word Office 2007
Novice
Screen Shot Alignment in Word
 
Join Date: Sep 2015
Posts: 6
anu_gv is on a distinguished road
Default Screen Shot Alignment in Word

Hi Paul,

Any suggestion is appreciated. When I ran the macro, it doesn't change the size of screen shots. My screen shots are different sizes in each step.

I am willing to attach the document.

Regards
Anu
Reply With Quote
  #8  
Old 09-24-2015, 08:47 PM
macropod's Avatar
macropod macropod is offline Screen Shot Alignment in Word Windows 7 64bit Screen Shot Alignment in Word 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

Quote:
Originally Posted by anu_gv View Post
I ran the macro by clicking "Run Sub/UserForm, the screen shot is out of range
I'm not sure what you mean by that.
Quote:
Originally Posted by anu_gv View Post
When I ran the macro, it doesn't change the size of screen shots.
You'll recall from post # that I mentioned that macro working with screen shots inserted as floating shapes. Different code is required for screen shots inserted as inlineshapes. Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long, sWdth As Single
With ActiveDocument.Range
  With .Sections(1).PageSetup
    sWdth = .PageWidth - .LeftMargin - .RightMargin - .Gutter - CentimetersToPoints(5)
  End With
  For i = 1 To .InlineShapes.Count
    With .InlineShapes(i)
      .LockAspectRatio = True
      .Width = sWdth
      With .Range.Paragraphs(1)
        If Len(.Range.Text) = 2 Then
          .LeftIndent = 0
          .RightIndent = 0
          .Alignment = wdAlignParagraphCenter
        End If
      End With
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
Although the above code will resize all the inline screenshots, it will only centre those that have no other text in the same paragraph. That's so you don't end up with a mass of centred text.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Long shot about rules and forwarding species Outlook 1 05-20-2014 10:12 AM
Screen Shot Alignment in Word Word 2010: "Screen shot" and "Print Screen" and fitting the page boundaries! Jamal NUMAN Word 4 06-30-2011 05:48 PM
Screen Shot Alignment in Word which controls should i set to make the pasted screen shot fits the boundaries of the Jamal NUMAN Word 2 06-30-2011 05:40 PM
Screen Shot Alignment in Word Strange Markup - see screen shot benjimon Word 1 12-05-2010 02:28 PM
Cropping an screenshot ( screen shot pasted into word 2007. aligahk06 Word 1 10-07-2009 07:12 AM

Other Forums: Access Forums

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


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