View Single Post
  #1 (permalink)  
Old August 12th, 2009, 08:46 AM
rangeshram rangeshram is offline
Authorized User
Points: 145, Level: 2
Points: 145, Level: 2 Points: 145, Level: 2 Points: 145, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2008
Location: India
Posts: 31
Thanks: 6
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rangeshram
Default VBA Word Userform Dynamically - Help

Dear all,

Pls. help me to find the solution for Dynamic Positions in word.

I have created form with Listbox control to show the bold text in the whole document.

While selecting/double click the listbox item in the userform, the cursor will automatically go to their respective positions.

For example: Let us assume below instances were in the listbox
TextBold1
TextBold2
TextBold3


By clicking the TextBold2 i.e., the selected word in the listbox will match the word document and the cursor will automatically pointed there.

Code:
UsrfrmMain.lstBold.AddItem strBold(i)
UsrfrmMain.Show
I need help for the placing dynamic positions while clicking the listbox in the userform.

Thanks,
Rangesh
Reply With Quote