PDA

View Full Version : Typetext & Bullet



benz
11-29-2007, 02:04 PM
Hi, Below is userform code im working on and I believe im close ..
but just can't seem to get it to work. I know my code isint proffesional
at all, but I hope you get the idea of what I was doing.Code Objective:
Open a document which contains a table, search cola for the word that
matches a textbox in the userform (which becomes the target row) then
depending on what the user selects in the dropdown determines the
target Col to add a bullet to the list.

*Note opening the doc and every thing works just not the inserting a bullet.


Thank you to anyone that helps.:bow:
Happy Holidays!
Ben Z.

Here is the code im using copied into a word doc. I didnt look right when I tried posting it here.

lucas
11-29-2007, 02:39 PM
Can you attach the actual document with the userform and code?

lucas
11-29-2007, 02:41 PM
When posting code to the thread just paste it in and then select the code....hit the vba button and it will be formatted as it is in the visual basic editor.

lucas
11-29-2007, 02:47 PM
What is T in this line of code?
strPath = "C:\MyDocuments\" & T & "\Planning\2007\Todos.doc"

benz
11-29-2007, 03:21 PM
Thank you Lucas for having a look.

The line above




strPath = "C:\MyDocuments\" & T & "\Planning\2007\Todos.doc"




Should say


T = ActiveDocument.CustomDocumentProperties("Task").Value



I don't know if it will help because the code refers to a specifc toolbar and document .... but here is what I have so far.




Ben Z.