Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2011, 02:37 AM
Peter Denly Peter Denly is offline Callout macro needed - Help please Windows XP Callout macro needed - Help please Office 2007
Novice
Callout macro needed - Help please
 
Join Date: Jul 2011
Posts: 11
Peter Denly is on a distinguished road
Default

The error is still there. But…

Removed 'With' 'End With' seems to have cured this

This runs ok down to .Anchor.Cut where I now get the error:

Run-time error '424' object required

Any thoughts? Thanks



Current running code:

Code:
Sub Demo2()
'
' Demo2 Macro
'
'
Dim Shp As Shape
Selection.Copy
Set Shp = ActiveDocument.Shapes.AddCallout(Type:=msoCalloutOne, _
Left:=100, Top:=40, Width:=150, Height:=75)
Shp.TextFrame.TextRange.PasteAndFormat (wdFormatOriginalFormatting)
Selection.Style = "Normal"
With Shp
  .Anchor.Cut
  Selection.Paste
  .WrapFormat.Type = wdWrapSquare
  .RelativeVerticalPosition = wdRelativeVerticalPositionParagraph
  .Top = 0
End With
Rng.Select
End Sub

Last edited by macropod; 07-20-2011 at 03:10 AM. Reason: Added Code Tags
Reply With Quote
Reply



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 09:11 AM.


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