I am no programmer or even in the computer field, so bare with me here please. I was making a Word document for school and was tinkering with the VB that is accessible through Word. I made a textbox with a scroll bar in the middle of a one-page document.
I have two problems with it. The scroll bar works great with that textbox until I close the file and then reopen it. That document always opens up in design mode which means I must exit design mode in order for the scroll bar to work. How do I change that so it opens with the VB scroll bar working?
The second question has to do with scrolling the entire Word document. When I do that, the VB textbox does not move until the mouse is released. Anything I can do there?
Thanks!
Last edited by RobDog888; Feb 14th, 2005 at 07:07 PM.
Thanks for the welcome. I'm using Word from Office 2000.
I'll try what you have there.
I can't say I've never messed with VB. I was a beginner programmer about 6 years ago with VB. I helped program user interfaces for industrial machinery that ran off PLC's. Whats sad is that I do not remember anything hardly, just enough to get in trouble.
I have a background in electronics and robotics so I know what you mean about the PLC's and I
almost went into that field, but for some reason I didnt realize that I could make a career out of
programming even though I had done it off and on for 10 years before that.
If you need any help I am usually on-line a good portion of the day and night and dont worry, it
will all come back to you.
Ps, since your new, I'll mention that you should Resolve your thread when your question has been
solved. Its kinda like a courtesy to others so they dont read the thread entirely to find out
that its already been solved
Later
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
The code I have is like what you wrote and it is in the right place. I forgot all about macros. I used the help feature through Word just now and I think I created or enabled it. Not so sure though.
Your test is a little different than mine. I have text entered in it for someone to read for example. I also activated a vertical scrollbar.
I think the problem is the macros not being enabled. I thought I was following the right steps when I went to macro in the toolbar window came up and I typed in AutoNew and followed a couple more steps and some new code appeared. If I try to run everything, I get an error saying macros not enabled.
Heres the file hopefully and thanks for your help so far
Ps, I resolved the thread for you, but usually the thread starter should do it
by editing the first post and either changing the subject icon to the green
check mark or appending the subject with "[Resolved]"
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.