Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2012, 07:46 AM
4mysanity 4mysanity is offline Splitting Out PDFs Windows 7 64bit Splitting Out PDFs Office 2010 64bit
Novice
Splitting Out PDFs
 
Join Date: Nov 2012
Posts: 16
4mysanity is on a distinguished road
Default

Hey Pal,



Sorry for the late response. Thanks for the correction in code. Yeah the beginning part isn't necessary to worry about.

Your code worked! The only thing, is it inserted the picture the way I described, except it inserted after the first sentence of the paragraph. (See attached photo for an example)

citgo.pdf

The image appears below the guys name "001 Joe Smith Process Engineer", it should be above the guy's name. Any idea why that might be?

Thanks again for your help!

Last edited by macropod; 12-03-2012 at 03:21 PM. Reason: Deleted unnecessary quote of entire previous post.
Reply With Quote
  #2  
Old 12-03-2012, 03:27 PM
macropod's Avatar
macropod macropod is offline Splitting Out PDFs Windows 7 64bit Splitting Out PDFs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
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 4mysanity View Post
The image appears below the guys name "001 Joe Smith Process Engineer", it should be above the guy's name. Any idea why that might be?
Because that's how I coded it. It wasn't clear from your previous posts that you wanted the image above the name. To put it above the name, change the With Rng ... End With block to:
Code:
      With Rng
        .Collapse wdCollapseStart
        .InsertBefore Chr(12) & vbCr
        .MoveStart wdCharacter, 1
        .ParagraphFormat.Alignment = wdAlignParagraphCenter
      End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-03-2012, 03:38 PM
4mysanity 4mysanity is offline Splitting Out PDFs Windows 7 64bit Splitting Out PDFs Office 2010 64bit
Novice
Splitting Out PDFs
 
Join Date: Nov 2012
Posts: 16
4mysanity is on a distinguished road
Default RE:

Thanks Pal!

Just a quick question, seems to work, sort of, I executed the Macro and got an error on this line

Code:
.SaveAs2 FileName:=sPath & Str & ".pdf", FileFormat:=wdFormatPDF, AddToRecentFiles:=False
But then I reset the project, executed the Macro and it worked perfectly. Then I tried testing it one more time, then got an error on this line (which is 12 lines up from the end of the End Sub command:

Code:
Rng.Copy
any idea why that might be? I thought it had something to do with the desination folder I was saving in, but that wasn't it.
Reply With Quote
  #4  
Old 12-03-2012, 03:44 PM
4mysanity 4mysanity is offline Splitting Out PDFs Windows 7 64bit Splitting Out PDFs Office 2010 64bit
Novice
Splitting Out PDFs
 
Join Date: Nov 2012
Posts: 16
4mysanity is on a distinguished road
Default RE:

Nope you know what, its definitely not the Rng.Copy aspect, its the
Code:
.SaveAs2 FileName:=sPath & Str & ".pdf", FileFormat:=wdFormatPDF, AddToRecentFiles:=False
Closed out of the project, re-opened it, tested it again, and it was that lineVBA editor highlighted.

Sorry for the second post.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserted PDFs become Pixelated in Powerpoint fongchun PowerPoint 0 11-26-2012 06:24 PM
Splitting Out PDFs My Word 2007 doesnt display PDFs correctly mattk561 Word 8 10-31-2012 08:04 PM
Splitting Out PDFs Embedding PDFs in MS Word 2010 chitownbillj Word 1 06-30-2012 12:01 AM
Creating High Quality PDFs from Word 2010 BrazzellMarketing Word 11 01-27-2012 01:06 PM
Splitting Out PDFs Converting Powerpoint into Fully Accessable PDFs KCD123 PowerPoint 4 09-28-2011 10:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:51 PM.


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