OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   CorelDRAW/Corel DESIGNER VBA (http://forum.oberonplace.com/forumdisplay.php?f=16)
-   -   Replace part text of text shape (http://forum.oberonplace.com/showthread.php?t=24855)

aakkaarr 05-07-2021 08:28

Replace part text of text shape
VBA code to Replace part text of text shape

shelbym 03-09-2021 20:57

Replace Part Text of Text Shape
You can use the Text.Replace for this. Here is quick example from the API Documentation:

Sub Test()
  Dim s As Shape
  For Each s In ActivePage.FindShapes(, cdrTextShape)
    s.Text.Replace "#", CStr(Date), False, ReplaceAll:=True
  Next s
End Sub

Happy Coding,


All times are GMT -5. The time now is 20:18.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com