P
Peter
I have some REF fields that point to bookmarks for document ranges that are
deleted in my VBA code. I want the REF field to point to a new bookmark. I
want to use something like the following
myRange.fields("REF OQTempRHMappingSection \r \h").code =
replace(myRange.fields("REF OQTempRHMappingSection \r \h").code, "TempRH",
"TempOnly")
Of course, this does not work or I wouldn't be writing this question.
Is there a way to accomplish what I'm trying to do? If I reveal codes in the
document, I can perform the edit manually. I think I should therefore be able
to do it in VBA as well, right?
Any help would be greatly appreciated.
Thanks,
Peter
deleted in my VBA code. I want the REF field to point to a new bookmark. I
want to use something like the following
myRange.fields("REF OQTempRHMappingSection \r \h").code =
replace(myRange.fields("REF OQTempRHMappingSection \r \h").code, "TempRH",
"TempOnly")
Of course, this does not work or I wouldn't be writing this question.
Is there a way to accomplish what I'm trying to do? If I reveal codes in the
document, I can perform the edit manually. I think I should therefore be able
to do it in VBA as well, right?
Any help would be greatly appreciated.
Thanks,
Peter