Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Computing Support Forums > Programming & Scripting
Home Forums Register Search Today's Posts Mark Forums Read

MS Word Tip: Remove Pics from Document

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 18-Apr-2008, 01:42 PM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Their's not to reason why
Posts: 2,926
Points: 4403 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 81
None
Join Date: 04 May 2004
Location: Aberdeen, UK
Age: 25
Certifications: ITIL Foundation
WIP: 70-536,70-294,(A+), Procastination+
MS Word Tip: Remove Pics from Document

One of the girls at work had an issue where they needed to remove all pics from a word doc (it was about 2MB with the pics in, and needed to be drastically reduced for storage in the system).

In case you ever need to do this, you can add the code below to a macro. Run it, and it will remove all pictures so that when you save it, the size of the document will be reduced.

This is confirmed to work in both 2003 and 2007. I can post step-by-step instructions on how to do this in both if anyone wants.

Code:
Dim objPic As InlineShape
Dim PicCount As Integer

For Each objPic In ActiveDocument.InlineShapes
        objPic.Delete
        PicCount = PicCount + 1
Next objPic
MsgBox (PicCount & " Images Deleted")
I also mapped this to a keyboard shortcut (Alt + `) so that its easier to run. If you are doing this sort of thing a lot, I would recommend it, otherwise you have to get into the macro menu and run it from there.


"Im Nerdy in the extreme and whiter than sour cream"


ObsidianPhoenix - my development blog



 
Reply With Quote
  #2  
Old 19-Apr-2008, 10:48 AM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,381
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 27
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
2 MB isn't that big. You mean 2 GB perhaps?


MCP (NT 3.51) MCSE (NT 4.0, 2000, 2003) MCSA (2000, 2003), MCT (since 1999), Vista, Exchange 2007, MCTS server 2008 (3x), A+, Network+, Security+, CEH.
 
Reply With Quote
  #3  
Old 19-Apr-2008, 10:51 AM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Their's not to reason why
Posts: 2,926
Points: 4403 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 81
None
Join Date: 04 May 2004
Location: Aberdeen, UK
Age: 25
Certifications: ITIL Foundation
WIP: 70-536,70-294,(A+), Procastination+
Quote:
Originally Posted by Tinus1959 View Post
2 MB isn't that big. You mean 2 GB perhaps?
no it was 2MB. Not particularly big in terms of size, but for the app is was being loaded into, it was far too big, and crashing the app continually. Its a webapp, and doesnt like more than about 500K.


"Im Nerdy in the extreme and whiter than sour cream"


ObsidianPhoenix - my development blog



 
Reply With Quote
  #4  
Old 19-Apr-2008, 08:52 PM
Bluerinse's Avatar
Bluerinse Bluerinse is offline
Senior Moderator
Posts: 7,433
Points: 2479 Bluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 points
Power: 108
None
Join Date: 29 Jun 2003
Location: The Gold Coast, QLD Australia
Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
WIP: None but considering SBS
Quote:
Originally Posted by Tinus1959 View Post
2 MB isn't that big. You mean 2 GB perhaps?
Jeez Tinus a 2GB word doc.. what are you on, space cake?


"A child of five could understand this. Fetch me a child of five." <Groucho Marx>
 
Reply With Quote
  #5  
Old 19-Apr-2008, 09:27 PM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Their's not to reason why
Posts: 2,926
Points: 4403 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 81
None
Join Date: 04 May 2004
Location: Aberdeen, UK
Age: 25
Certifications: ITIL Foundation
WIP: 70-536,70-294,(A+), Procastination+
Quote:
Originally Posted by Bluerinse View Post
Jeez Tinus a 2GB word doc.. what are you on, space cake?
oh, I wish he was. I've seen 2GB word files before.


"Im Nerdy in the extreme and whiter than sour cream"


ObsidianPhoenix - my development blog



 
Reply With Quote
  #6  
Old 19-Apr-2008, 10:13 PM
Bluerinse's Avatar
Bluerinse Bluerinse is offline
Senior Moderator
Posts: 7,433
Points: 2479 Bluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 pointsBluerinse has over 2000 points
Power: 108
None
Join Date: 29 Jun 2003
Location: The Gold Coast, QLD Australia
Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
WIP: None but considering SBS
Quote:
Originally Posted by Fergal1982 View Post
oh, I wish he was. I've seen 2GB word files before.
In which case the author needs to be shot


"A child of five could understand this. Fetch me a child of five." <Groucho Marx>
 
Reply With Quote
  #7  
Old 19-Apr-2008, 10:17 PM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Their's not to reason why
Posts: 2,926
Points: 4403 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 81
None
Join Date: 04 May 2004
Location: Aberdeen, UK
Age: 25
Certifications: ITIL Foundation
WIP: 70-536,70-294,(A+), Procastination+
oh yeah. part of the problem was the inclusion of large images without any attempt (or understanding of the need) to reduce the size of them. Resulting file was well over 2GB as I recall.


"Im Nerdy in the extreme and whiter than sour cream"


ObsidianPhoenix - my development blog



 
Reply With Quote
  #8  
Old 20-Apr-2008, 02:59 PM
Tinus1959's Avatar
Tinus1959 Tinus1959 is offline
Lifetime Member
Posts: 1,381
Points: 1120 Tinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 pointsTinus1959 has over 1000 points
Power: 27
None
Join Date: 11 Apr 2007
Location: The Netherlands
Age: 49
Certifications: See my signature
WIP: MCSD, MCAD, CCNA, CCNP
Quote:
Originally Posted by Fergal1982 View Post
oh, I wish he was. I've seen 2GB word files before.
Yep, me to. This guy even had some movies inside (avi).


MCP (NT 3.51) MCSE (NT 4.0, 2000, 2003) MCSA (2000, 2003), MCT (since 1999), Vista, Exchange 2007, MCTS server 2008 (3x), A+, Network+, Security+, CEH.
 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Computing Support Forums > Programming & Scripting


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
THIS IS A GOOD TIP (or not) PAT Software 3 21-Dec-2007 09:47 AM
Recovered the wrong version of a Word document... motorleague Microsoft Office and Office Server 1 11-Oct-2007 01:39 PM
A email and web risks document for dummys?? supag33k Security & Viruses 0 02-Oct-2007 02:06 AM
Help with word... dmarsh26 Software 2 04-Sep-2007 05:07 PM
Word 2000 help. Theprof Microsoft Office and Office Server 14 11-Feb-2007 11:19 PM


All times are GMT. The time now is 10:35 PM.

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages