Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] markaessex@gmail.com is offline
external usenet poster
 
Posts: 5
Default Multiple Image Re-sizing to a Consistent Size

Hello, I have a requierment to increase the size of a number of
pictures that have been inserted into MS Word. The issue is that I
have around 30 pictures within each file and I have 50 files or more.
Each picture within the document is smaller than required and each
picture may be a diffferent size.
I would prefer not to have to select each picture uniquely and change
the size
of it but I cannot seem to select them all at once within each
document and apply a re-size to them all. Ideally i would like to run
a macro agaisnt each file or batch of files that will allow each image
to be re-sized to a larger size but to additionally end up with all
images beign the same size for consistency. If someone could help me
with this, it would be greatly appreciated. Thanks - Mark

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 264
Default Multiple Image Re-sizing to a Consistent Size

Sub ScratchMacro()
Dim oShape As InlineShape
Dim dblR As Double
For Each oShape In ActiveDocument.InlineShapes
If oShape.Type = wdInlineShapePicture Then
With oShape
dblR = .Height / .Width
.Height = InchesToPoints("4")
dblR = .Height / dblR
.Width = dblR
End With
End If
Next oShape
End Sub

See the answer to your other post which you neglected to acknowledge
for a link to a batch file processing macro.




On Mar 21, 1:33 pm, wrote:
Hello, I have a requierment to increase the size of a number of
pictures that have been inserted into MS Word. The issue is that I
have around 30 pictures within each file and I have 50 files or more.
Each picture within the document is smaller than required and each
picture may be a diffferent size.
I would prefer not to have to select each picture uniquely and change
the size
of it but I cannot seem to select them all at once within each
document and apply a re-size to them all. Ideally i would like to run
a macro agaisnt each file or batch of files that will allow each image
to be re-sized to a larger size but to additionally end up with all
images beign the same size for consistency. If someone could help me
with this, it would be greatly appreciated. Thanks - Mark



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] markaessex@gmail.com is offline
external usenet poster
 
Posts: 5
Default Multiple Image Re-sizing to a Consistent Size

On 21 Mar, 18:00, "Greg Maxey" wrote:
Sub ScratchMacro()
Dim oShape As InlineShape
Dim dblR As Double
For Each oShape In ActiveDocument.InlineShapes
If oShape.Type = wdInlineShapePicture Then
With oShape
dblR = .Height / .Width
.Height = InchesToPoints("4")
dblR = .Height / dblR
.Width = dblR
End With
End If
Next oShape
End Sub

See the answer to your other post which you neglected to acknowledge
for a link to a batch file processing macro.

On Mar 21, 1:33 pm, wrote:



Hello, I have a requierment to increase the size of a number of
pictures that have been inserted into MS Word. The issue is that I
have around 30 pictures within each file and I have 50 files or more.
Each picture within the document is smaller than required and each
picture may be a diffferent size.
I would prefer not to have to select each picture uniquely and change
the size
of it but I cannot seem to select them all at once within each
document and apply a re-size to them all. Ideally i would like to run
a macro agaisnt each file or batch of files that will allow each image
to be re-sized to a larger size but to additionally end up with all
images beign the same size for consistency. If someone could help me
with this, it would be greatly appreciated. Thanks - Mark- Hide quoted text -


- Show quoted text -


Hi, sorry, i did ackowledge via Reply to Author - this may have been
the wrong way to reply, but i am very grateful. Thank you once again -
your help has been invaluable Regards Mark.

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 264
Default Multiple Image Re-sizing to a Consistent Size

Mark,

Ok. The gmail.com address that I am using here is just a bogus
account which fills with spam and everything gets deleted
automatically. I am not smart enough to figure out how to keep a
valid e-mail address from being splashed all over the internet.
Thanks for taking the time to ackknowledge the post.

I suppose the real foopah was starting another string. I watch the
strings I post to and I suppose most others watch their postings. If
you have questions about an answer provided then just reply back in
the same string.

Glad I could help.



On Mar 21, 2:05 pm, wrote:
On 21 Mar, 18:00, "Greg Maxey" wrote:





Sub ScratchMacro()
Dim oShape As InlineShape
Dim dblR As Double
For Each oShape In ActiveDocument.InlineShapes
If oShape.Type = wdInlineShapePicture Then
With oShape
dblR = .Height / .Width
.Height = InchesToPoints("4")
dblR = .Height / dblR
.Width = dblR
End With
End If
Next oShape
End Sub


See the answer to your other post which you neglected to acknowledge
for a link to a batch file processing macro.


On Mar 21, 1:33 pm, wrote:


Hello, I have a requierment to increase the size of a number of
pictures that have been inserted into MS Word. The issue is that I
have around 30 pictures within each file and I have 50 files or more.
Each picture within the document is smaller than required and each
picture may be a diffferent size.
I would prefer not to have to select each picture uniquely and change
the size
of it but I cannot seem to select them all at once within each
document and apply a re-size to them all. Ideally i would like to run
a macro agaisnt each file or batch of files that will allow each image
to be re-sized to a larger size but to additionally end up with all
images beign the same size for consistency. If someone could help me
with this, it would be greatly appreciated. Thanks - Mark- Hide quoted text -


- Show quoted text -


Hi, sorry, i did ackowledge via Reply to Author - this may have been
the wrong way to reply, but i am very grateful. Thank you once again -
your help has been invaluable Regards Mark.- Hide quoted text -

- Show quoted text -



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sizing even page footer affects odd footer size soccerman58 Page Layout 6 June 18th 07 01:56 PM
Using VBA to re-size image? sdm Microsoft Word Help 1 May 18th 06 12:30 AM
Scanning a legal size image Hotwire Microsoft Word Help 2 June 28th 05 04:10 PM
How do I control the size of the image when linking to an Excel s. gzuko30 Microsoft Word Help 1 January 16th 05 08:51 PM
Srange paging behavior due to image size ArtWorker Microsoft Word Help 1 November 29th 04 11:25 PM


All times are GMT +1. The time now is 04:18 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"