Forum Discussion
templatebuilding
I have tried to adapt the list and bookmarks with no luck. In the list properties is it the name or value that needs to correlate with the listed name of the bookmark?
- Magnus_EdstrmDec 30, 2022Copper ContributorHi Doug. Actually it is possible to do and It was very simple. I went through the list and manually moved each table to the same location on the paper i e "stacked" them ontop of eachother. Granted when all are displayed it looks aweful but it works like a charm.
/Magnus - Dec 30, 2022
That will not be possible with the arrangement that you now have.
That does not however mean that it cannot be done. One way would be to have the tables in another document, identified by their bookmarks, and have code access that the relevant table in that document and copy and paste it into the required position in the host document. - Magnus_EdstrmDec 29, 2022Copper ContributorSo now I only have one more issue. I would like the tabels to appear at the top of the page right below the line regardless of which table it is. How do I do that?
- Magnus_EdstrmDec 29, 2022Copper ContributorHey Doug, I have now checked for discrepancies both in the bookmarks and the list and I am happy to report that it is all working flawlessly.
Thank you so much for your help on this. One thing that is clear to me in all of this, is that I need to learn VB coding *L*. - Magnus_EdstrmDec 29, 2022Copper ContributorThank you for your patience with me on this Doug, It´s not easy being a noob *L*
- Magnus_EdstrmDec 29, 2022Copper Contributor
- Dec 29, 2022
You need to check for discrepancies between the items in the dropdown list (as parsed) and the bookmark names.
For example there is nothing in the dropdown list that correspondes to the bookmark highlighted in yellow
When "välj ärende" is selected with hidden text not displayed, the items highlighted in yellow
no longer appear
- Dec 29, 2022It sounds like you have hidden text being displayed!!!
- Magnus_EdstrmDec 29, 2022Copper ContributorThe issue is that all fields are visible when "välj ärende" is selected in the list and there is no change when I select a different line in the list. so ie. nothing happens what so ever.
- Dec 28, 2022As there is no bookmark with the name of ärende, there will be nothing visible when that is selected.
As a test, if you insert a bookmark with the name of ärende around something, when you select välj ärende, the text identified by that bookmark should be visible and everything else should be hidden. - Magnus_EdstrmDec 28, 2022Copper ContributorI the script is workning properly then when the list option "välj ärende" is selected (default selection) then all tables should be hidden correct?
- Magnus_EdstrmDec 28, 2022Copper ContributorOk, that is what I figured. I opened your modified file but no difference on my end.
- Dec 28, 2022
Magnus_Edstrm The entries in the list can contain those characters, but the bookmark names cannot ad therefore, the code removes those characters so that the resulting strings matchs the bookmark names
- Dec 28, 2022
Magnus_Edstrm To get it to work, I had to remove the check mark from the MISSING: Ãrendemall MBL samfak.dotm under Tools>References in the Visual Basic Editor. I have attached the amended file.
- Magnus_EdstrmDec 28, 2022Copper Contributor
I have tried to make the bookmarks as instructed and no joy I´m affraid. I can´t seem to grasp what I am doing wrong. I´ll attach the file to this reply so you can see where I´ve gone wrong.
Thank you so much for your patience Doug
/Magnus
- Magnus_EdstrmDec 28, 2022Copper ContributorSo if I understand you correctly the listnames can include those characters and spaces and the script removes them when searching for a correlating bookmark.