Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-19-2011, 03:34 AM
macropod's Avatar
macropod macropod is offline Callout macro needed - Help please Windows 7 64bit Callout macro needed - Help please Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
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 Peter,

Word hasn't used Style Sheets since the dark ages (well, pre 1994, anyway). Nowadays, everything is based on Styles defined in the document's template and/or created in the document itself.

Some basic code to copy a pargraph, make a callout and paste the copied text into the callout is:
Code:
Dim Shp As Shape
Selection.Paragraphs.First.Range.Copy
Set Shp = ActiveDocument.Shapes.AddCallout(Type:=msoCalloutOne, _
        Left:=100, Top:=40, Width:=150, Height:=75)
Shp.TextFrame.TextRange.PasteAndFormat (wdFormatOriginalFormatting)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook help needed Tricia Outlook 4 06-21-2011 02:56 PM
Needed help with MSI Package ahaseeb Outlook 0 01-17-2011 10:19 PM
AverageIf and Div/0 help needed jim831 Excel 2 10-30-2010 04:54 AM
Callout macro needed - Help please help needed!!! thunder14 Word 1 10-17-2009 02:57 PM
Callout macro needed - Help please Help needed :) thechief55 PowerPoint 1 04-28-2009 01:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:53 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