Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.word.vba.general,microsoft.public.word.vba.beginners,microsoft.public.excel.programming,microsoft.public.excel.misc,comp.lang.basic.visual.misc
external usenet poster
 
Posts: 14
Default IsEmpty and bookmark help with excel 97 and word 97

hi...

i just inherited an excel 97 macro that opens up word 97 documents and
inserts the bookmarks information
in a separate excel file. it works perfectly well grabbing the values
from majority of the bookmarks and
inserting them in to excel but it abruptly stops at a certain bookmark
indicating that it is empty, then
ends the function.

for instance, in the excel macro, the PrevBilled bookmark = empty,
thus PrevBilled bookmark = false.
however in the word document, the PrevBilled bookmark is Yes.

How can the PrevBilled bookmark be empty if the value = yes in the
drop down item?

does anyone have a suggestion as to what i am doing wrong? it's a very
long excel macro with 960 lines, so i'm only sending a tiny part.

thanks in advance... jung
===========================

function v2004bookmark(bookmarknum)

On Error GoTo noBookmark
Select Case bookmarkNum
case 0
wdApp.Selection.Goto What:=wdGoToBookmark, Name:="Preparer"
case 1
wdApp.Selection.Goto What:=wdGoToBookmark, Name:="PrepareDate"
case 2
wdApp.Selection.Goto What:=wdGoToBookmark, Name:="Key1"
case 3... 'to case 10 works fine....

case 11
'Has the Customer been billed previously for this Invoice? Must
Select/Y/N
wdApp.Selection.Goto What:=wdGoToBookmark, Name:="PrevBilled"
'the V2004Bookmark = "False"

Case Else
MsgBox ("Error!")
End Select

V2004Bookmark = "True"
GoTo EndFunc

noBookmark:
V2004Bookmark = "False"

EndFunc:

End Function
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink to Word / HTLM bookmark in Excel 2007 Zement Excel Discussion (Misc queries) 3 April 4th 23 02:21 PM
hyperlinking from an Excel cell to a bookmark in Word kipahulu Excel Discussion (Misc queries) 1 July 16th 09 09:41 PM
linking to a bookmark in a Word doc ibvalentine Excel Discussion (Misc queries) 0 April 25th 08 12:27 AM
Microsoft Word bookmark content into an Excel cell using VBA Gaetan Excel Discussion (Misc queries) 1 March 9th 07 10:21 PM
hyperlink from Excel to a Word bookmark Bertie Excel Discussion (Misc queries) 2 May 16th 06 07:51 PM


All times are GMT +1. The time now is 06:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"