Ah, sry for the bad spec. it looked clear in my head.
Today I have built up some templates with VBA and userforms.
But I don't really have the time to update and create new ones for my work.
So, I was thinking of some new way of creating simple templates that are easy and fast to create.
I came up with the idea of instead of using userforms I could have a table in the template that are hidden för print and preview. In this table the user would input for example the date and the subject.
[tt]
___________________________________
| | |
| Date: | 2005-03-17 |
|________________|___________________|
| | |
| Subject: | Regarding... |
|________________|___________________|
| | |
| Project no: | 2/7106 |
|________________|___________________|
[/tt]
The values from the specific table cell (in column B in the example above) should then spread them selfes in the whole document (for example in the headings) via field REF.
The problem I have is how to access the cells vaule via the field REF.
I have tried to put the whole cell in a bookmark, but then a whole table (with one cell and one column) will be inserted istead of only the value in the cell.
I have also tried to put the whole table in a bookmark and tried to access the specifik cell via { REF (tableName columnXrowY) } but it doesent work.
And at last I have tried to put in form objects but then it locks the entire document.
I could use the field ASK option to make the user enter the values in the bookmarks in the hidden table. But then the problems comes when the user like to cahnge som value -> the bookmark will be deleted.
I hope this better explains what I'd like to do. =]