Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to make structure similar TreeView or ListView ? Pin
Golden Jing16-Dec-09 17:21
Golden Jing16-Dec-09 17:21 
AnswerRe: how to make structure similar TreeView or ListView ? Pin
Mycroft Holmes16-Dec-09 21:49
professionalMycroft Holmes16-Dec-09 21:49 
QuestionPacking Multiple EXEs and running them individually Pin
Dominick Marciano16-Dec-09 7:52
professionalDominick Marciano16-Dec-09 7:52 
AnswerRe: Packing Multiple EXEs and running them individually Pin
Ian Shlasko16-Dec-09 9:17
Ian Shlasko16-Dec-09 9:17 
AnswerRe: Packing Multiple EXEs and running them individually Pin
The Man from U.N.C.L.E.17-Dec-09 7:42
The Man from U.N.C.L.E.17-Dec-09 7:42 
AnswerRe: Packing Multiple EXEs and running them individually Pin
Dominick Marciano18-Dec-09 5:41
professionalDominick Marciano18-Dec-09 5:41 
AnswerRe: Packing Multiple EXEs and running them individually Pin
Dominick Marciano18-Dec-09 5:50
professionalDominick Marciano18-Dec-09 5:50 
QuestionSelection.Range.DupliCate.Find Problem Pin
Sachin Dubey16-Dec-09 3:16
Sachin Dubey16-Dec-09 3:16 
Hi All

I have created a macro to identify a word "and" and highlight it in a word document
First Look at my Macro Function


Public Sub AmESerialComma()
CheckDate
TurnOnTrackChanges
Call Home
With Selection.Find
.ClearFormatting
.Text = ",[!.]@ and [!.]@."
.MatchWildcards = True
.Execute
Do While .Found
With Selection.Range.Duplicate
.Find.Execute FindText:=" and "
.Start = .Start + 1: .End = .End - 1
.HighlightColorIndex = wdBrightGreen
End With
.Execute

Loop
End With
Call Home
RestoreTrackChanges

End Sub



My problem is that when it Goes In "With Selection.Range.Duplicate" Loop the first time it Capture "and" & highlight it .but next time "Selection.Range.Duplicate" is always comes Empty..So its going in Infinite Loop...

Can Any Body solve this problem,,I think after Highligting the text its not getting out from loop..

Please Show me some way
QuestionQuestion about FontDialog in VB.NET Pin
fd975016-Dec-09 1:46
professionalfd975016-Dec-09 1:46 
AnswerRe: Question about FontDialog in VB.NET Pin
fd975016-Dec-09 2:58
professionalfd975016-Dec-09 2:58 
QuestionError occur when Access Database compress. Pin
dcdhingra16-Dec-09 1:14
dcdhingra16-Dec-09 1:14 
AnswerRe: Error occur when Access Database compress. Pin
Dave Kreskowiak16-Dec-09 2:10
mveDave Kreskowiak16-Dec-09 2:10 
GeneralRe: Error occur when Access Database compress. Pin
dcdhingra16-Dec-09 3:25
dcdhingra16-Dec-09 3:25 
QuestionCrystal Reports Pin
lbs.allies15-Dec-09 23:51
lbs.allies15-Dec-09 23:51 
AnswerRe: Crystal Reports Pin
tosch16-Dec-09 0:59
tosch16-Dec-09 0:59 
QuestionDrawing on a PictureBox Pin
RyanSmith15-Dec-09 23:28
professionalRyanSmith15-Dec-09 23:28 
AnswerRe: Drawing on a PictureBox Pin
Luc Pattyn15-Dec-09 23:55
sitebuilderLuc Pattyn15-Dec-09 23:55 
GeneralRe: Drawing on a PictureBox Pin
RyanSmith16-Dec-09 10:56
professionalRyanSmith16-Dec-09 10:56 
GeneralRe: Drawing on a PictureBox Pin
Luc Pattyn16-Dec-09 11:16
sitebuilderLuc Pattyn16-Dec-09 11:16 
GeneralRe: Drawing on a PictureBox Pin
RyanSmith16-Dec-09 22:59
professionalRyanSmith16-Dec-09 22:59 
QuestionSysWOW64 on Windows 7 Pin
C#Coudou15-Dec-09 16:55
C#Coudou15-Dec-09 16:55 
AnswerRe: SysWOW64 on Windows 7 Pin
JR21215-Dec-09 22:54
JR21215-Dec-09 22:54 
AnswerRe: SysWOW64 on Windows 7 Pin
Dave Kreskowiak16-Dec-09 2:06
mveDave Kreskowiak16-Dec-09 2:06 
GeneralRe: SysWOW64 on Windows 7 Pin
C#Coudou16-Dec-09 13:35
C#Coudou16-Dec-09 13:35 
QuestionRe: SysWOW64 on Windows 7 Pin
JR21216-Dec-09 22:18
JR21216-Dec-09 22:18 

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.