vjdb
04-17-2008, 02:11 AM
Hello everybody,
I have a userform and it is almost perfect the only thing is that I want 2 bookmarks hidden when the correspondending textboxes are empty. So when the user fills out nothing in textbox Email the bookmark in the document should be not visible and therefore doesn't take up any space on the sheet. Is there a code to achieve this? Thanks in advance :)
This is what i thought:
If txtEmail = "" Then ActiveDocument.Bookmarks("Email").hide
I have a userform and it is almost perfect the only thing is that I want 2 bookmarks hidden when the correspondending textboxes are empty. So when the user fills out nothing in textbox Email the bookmark in the document should be not visible and therefore doesn't take up any space on the sheet. Is there a code to achieve this? Thanks in advance :)
This is what i thought:
If txtEmail = "" Then ActiveDocument.Bookmarks("Email").hide