OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24-03-2005, 08:52
RVogel
Guest
 
Posts: n/a
Default Find and Replace Text with Form

Novice needs some help. I am enough of a hack to read some sample code and modify it to what I want to do, but I am having some trouble finding info on doing this, if possible:

I have created a macro that brings up a form. The Form prompts the user with a textbox. The user types in a six-digit number and clicks OK. Then the macro searches for a string of text, specifically "XXXXXX". Here is where I am stumped: Replace the "XXXXXX" with the six-digit number. Then the macro will go on to print the document.

I have tried Text.Replace, but I can only get it to work with quotes around the new text, which doesn't allow me to reference the input in the textbox.

Can this be done?
Reply With Quote
  #2  
Old 24-03-2005, 09:37
RVogel
Guest
 
Posts: n/a
Default Never Mind...

Sorry, actually I found out it does work. Nice and simple like. Just like it was intended to.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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
Text ENCODE Craig Tucker CorelDRAW/Corel DESIGNER VBA 10 26-01-2005 13:59
Find objects by properties Webster CorelDRAW/Corel DESIGNER VBA 8 01-12-2004 18:51


All times are GMT -5. The time now is 06:19.


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