TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:RE: Problem with Macro Word 2003 to 2007 From:"Rick_Bishop" <rickbishop -at- austin -dot- rr -dot- com> To:<techwr-l -at- lists -dot- techwr-l -dot- com> Date:Thu, 18 Aug 2011 09:06:08 -0500
Deb: I can see right away that any {With} statement must end with and {End
With} statement.
This code should work:
---------------------------
Sub MacroName()
'
' MacroName Macro
'
'
With Dialogs(wdDialogInsertCrossReference)
SendKeys "ff{TAB}{DOWN}{DOWN}{ENTER}{TAB}{h}{TAB}": .Show
End With
End Sub
---------------------------
Date: Wed, 17 Aug 2011 14:19:19 +0300
From: Debbie Hemstreet <D_Hemstreet -at- rambam -dot- health -dot- gov -dot- il>
To: "Techwr-l (techwr-l -at- lists -dot- techwr-l -dot- com)"
<techwr-l -at- lists -dot- techwr-l -dot- com>
Subject: Problem with Macro Word 2003 to 2007
Message-ID:
I hope you can help me. I have a macro which works fine as is in Word 2003,
but when transferred to Word 2007, it does not work. I have enabled the
macro, checked my security, and verified within VBA help 2007, that the code
is OK. Any suggestions why the code won't work? The specific code is below.
Please note it was written with the help of Jonathan West.
With Dialogs(wdDialogInsertCrossReference)
SendKeys "ff{TAB}{DOWN}{DOWN}{ENTER}{TAB}{h}{TAB}": .Show
Create and publish documentation through multiple channels with Doc-To-Help.
Choose your authoring formats and get any output you may need. Try
Doc-To-Help, now with MS SharePoint integration, free for 30-days. http://www.doctohelp.com
---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-