Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

code to reactivate toolbars?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gil - 17 Jun 2007 14:49 GMT
Hi All,
I've automated some email functions from within my MS Word documents.  But my Word toolbar functions do not function after emailing unless I either close Outlook or shift from Word to Outlook back and forth once or twice, OR close Outlook.  It works entirely fine if I do not have Outlook open when using this autmoated emailing.  I am using the code: "WordBasic.EmailSend" with Word 2003, Windows XP

I seek to append code to reactivate my toolbars so as to be in synch with the active Word document on screen (The toolbars are visible but inactive).  

TIA and Cheers.  :)

Gil Carter
www.TenSecondMedicalRecord.com still free, electronic medical records programming.  
alborg - 18 Jun 2007 10:29 GMT
Hi Gil!

Try this-

Dim mybar, mybar2
Set mybar = CommandBars("Custom 2")
Set mybar2 = CommandBars("switchboardmain")
mybar.Visible = True
mybar2.Visible = True

Cheers,
Al

> Hi All,
> I've automated some email functions from within my MS Word documents.  But my Word toolbar functions do not function after emailing unless I either close Outlook or shift from Word to Outlook back and forth once or twice, OR close Outlook.  It works entirely fine if I do not have Outlook open when using this autmoated emailing.  I am using the code: "WordBasic.EmailSend" with Word 2003, Windows XP
[quoted text clipped - 5 lines]
> Gil Carter
> www.TenSecondMedicalRecord.com still free, electronic medical records programming
gil - 23 Jun 2007 17:03 GMT
Hi Al,
The toolbar is visible and not dim, but it's just not active until I spring out of Word to another program and back again, ... even
without closing Word.
Cheers,
Gil

> Hi Gil!
>
[quoted text clipped - 22 lines]
>> Gil Carter
>> www.TenSecondMedicalRecord.com still free, electronic medical records programming
Russ - 23 Jun 2007 20:41 GMT
Hey Gil,
If at the top of your toolbar button code you put a message box, does it pop
up.
If it does, then your toolbar button is active, but the code for the button
is confused about which application to apply itself.

> Hi Al,
> The toolbar is visible and not dim, but it's just not active until I spring
[quoted text clipped - 34 lines]
>>> www.TenSecondMedicalRecord.com still free, electronic medical records
>>> programming

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

gil - 24 Jun 2007 13:14 GMT
Ahhh, ... now that's a pearl.  I'll give it a try.
Cheers,
Gil

> Hey Gil,
> If at the top of your toolbar button code you put a message box, does it pop
[quoted text clipped - 40 lines]
>>>> www.TenSecondMedicalRecord.com still free, electronic medical records
>>>> programming
gil - 24 Jun 2007 13:50 GMT
Well, I think I've found a work around.
First, I could not decide where the "top of my toolbar button code" was, as all the custom toolbar menus would not drop down after
the automated email code ran.  So it wasn't just an isolated button.  Putting a msg box in the autoopen code that attached the
custom template didn't seem like an appropriate location either.

Upon further play, I appended the following to the automated email code.
ShowVisualBasicEditor = True
ShowVisualBasicEditor = False

And the toolbars are again active (enabled?).  Is there a better way to do this?

Also, I note that the document title (top banner) is grayed out after an automated email, even after continuing typing in the
document.

TIA,
Gil

> Hey Gil,
> If at the top of your toolbar button code you put a message box, does it pop
[quoted text clipped - 40 lines]
>>>> www.TenSecondMedicalRecord.com still free, electronic medical records
>>>> programming
gil - 24 Jun 2007 13:59 GMT
I take it back, ... on repeat testing, the doucment name banner is not grayed out.  And the added code does meet my needs, altho a
little less than ideal coding.
Cheers and Thanks  :)

> Well, I think I've found a work around.
> First, I could not decide where the "top of my toolbar button code" was, as all the custom toolbar menus would not drop down after
[quoted text clipped - 57 lines]
>>>>> www.TenSecondMedicalRecord.com still free, electronic medical records
>>>>> programming
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.