Click here to Skip to main content
16,007,779 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB Code for Access Pin
Anthony_Yio10-Oct-03 20:55
Anthony_Yio10-Oct-03 20:55 
GeneralRe: VB Code for Access Pin
Anthony_Yio10-Oct-03 21:02
Anthony_Yio10-Oct-03 21:02 
GeneralAPI, please reply me Pin
kersyanti8-Oct-03 20:30
kersyanti8-Oct-03 20:30 
GeneralRe: API, please reply me Pin
Nick Seng9-Oct-03 15:40
Nick Seng9-Oct-03 15:40 
GeneralHASP(Hardware Against Software Piracy) Pin
kersyanti8-Oct-03 18:22
kersyanti8-Oct-03 18:22 
GeneralRe: HASP(Hardware Against Software Piracy) Pin
Ray Cassick10-Oct-03 4:41
Ray Cassick10-Oct-03 4:41 
GeneralRe: HASP(Hardware Against Software Piracy) Pin
Anthony_Yio10-Oct-03 21:10
Anthony_Yio10-Oct-03 21:10 
QuestionHow to do replace strings in Vbscript Pin
xylan8-Oct-03 12:55
xylan8-Oct-03 12:55 
Hi I am using the following code to replace a string in VbScript.

Documents.Closeall
Documents.Open FileName.txt, "Text"
ActiveDocument.Selection.StartOfDocument
blnFound = ActiveDocument.Selection.FindText(String)

If blnFound = true Then
ActiveDocument.ReplaceText String "ReplaceStr 2.2"
MsgBox "Hello World!", 65, "MsgBox Example"
End If
ActiveDocument.Save FileName.txt

My filename.txt looks like this:
string 2.3,002 4
The script replaces "String" with "ReplaceStr 2.2", but I also want to replace all the part following string i.e 2.3,002 4.
I want my filename to look like this after the script is run:
ReplaceStr 2.2 instead of ReplaceStr 2.2 2.3,002 4

Any help will be very much apprciated.
Thanks
GeneralChecking for .NET before running Pin
Zlosk8-Oct-03 11:53
Zlosk8-Oct-03 11:53 
GeneralRe: Checking for .NET before running Pin
Dave Kreskowiak9-Oct-03 9:51
mveDave Kreskowiak9-Oct-03 9:51 
GeneralRe: Checking for .NET before running Pin
Mike Dimmick10-Oct-03 3:05
Mike Dimmick10-Oct-03 3:05 
GeneralRe: Checking for .NET before running Pin
Dave Kreskowiak10-Oct-03 5:03
mveDave Kreskowiak10-Oct-03 5:03 
GeneralRe: Checking for .NET before running Pin
Carl Mercier15-Oct-03 2:35
Carl Mercier15-Oct-03 2:35 
GeneralFormat datagrid Pin
ljCharlie8-Oct-03 10:30
sussljCharlie8-Oct-03 10:30 
GeneralFinding Server Name Pin
winterton8-Oct-03 5:40
winterton8-Oct-03 5:40 
GeneralRe: Finding Server Name Pin
parths8-Oct-03 18:34
parths8-Oct-03 18:34 
GeneralNewb question about controls Pin
PaulStat8-Oct-03 2:12
PaulStat8-Oct-03 2:12 
GeneralRe: Newb question about controls Pin
Jim Taylor10-Oct-03 0:20
Jim Taylor10-Oct-03 0:20 
GeneralVB.NET CHECKEDLISTBOX AND TEXTBOX TOGETHER Pin
Jayeshp8-Oct-03 0:42
Jayeshp8-Oct-03 0:42 
GeneralManaging Menus Pin
Member 6244147-Oct-03 22:47
Member 6244147-Oct-03 22:47 
GeneralRe: Managing Menus Pin
Zlosk8-Oct-03 12:02
Zlosk8-Oct-03 12:02 
GeneralRetrieving ColorSpace from an image Pin
Andy Leeds7-Oct-03 9:11
Andy Leeds7-Oct-03 9:11 
GeneralGetting Printer Information Via Network Pin
fun_jay7-Oct-03 8:58
fun_jay7-Oct-03 8:58 
GeneralRe: Getting Printer Information Via Network Pin
Dave Kreskowiak7-Oct-03 18:26
mveDave Kreskowiak7-Oct-03 18:26 
GeneralRe: Getting Printer Information Via Network Pin
Anonymous7-Oct-03 22:41
Anonymous7-Oct-03 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.