-
Bonriki
AskWoody LoungerThanks RG
Looks better than what I was proposing
However, having got all the code in it now will not recognise any users and we just get the VBWarning with a blank userform in behind, which is correct because it has been instructed to not show anything until the user is verified.I have set myself as the “Supervisor”
Mmmmmm!!!!!!!!
-
Bonriki
AskWoody LoungerRG
The purpose of this is for the users or their assistants to select signatures to attach to documents. I have created a user form with 10 signatories listed and have used OptionButtons to select, hence the Case statements.
The user, in this case, is Sharon and the secretary is Jen. -
Bonriki
AskWoody LoungerRG hi again
I decided to go with your suggestion but am having problems getting it to work.
I have defined the variable zUserName,Dim zUserName As String
zUserName = Environ(“UserName”)
and used it like this
Case OptSharon
If zUserName = “Sharon Thomas” Or “Jen Ferguson” ThenSelection.InlineShapes.AddPicture FileName:= _
“P:_IANZCorporateServicesBusinessServicesGraphicsSignaturesSharon Thomas.jpg” _
, LinkToFile:=False, SaveWithDocument:=TrueWith ActiveDocument.InlineShapes(ActiveDocument.InlineShapes.Count)
.LockAspectRatio = msoTrue
.Width = CentimetersToPoints(2.5)
End With
Else
MsgBox “You do not have permission to use this signature!”, 48
EndWhat am I doing wrong?
-
Bonriki
AskWoody LoungerPaul
Your suggestion fixed the problem. Thanks for that.
Completely forgot about that setting!It has been very frustrating as the document turned out to be 45 pages instead of 29 and the comments column is too small to write in!!
-
Bonriki
AskWoody LoungerCharles
Can I get you to look at the attached document with IF fields that I can’t seem to get to work, it’s driving me nuts! -
Bonriki
AskWoody LoungerSorry for the delay been away for 7 days.
Doesn’t seem to work
-
Bonriki
AskWoody LoungerAndrew a final question for you
If I place the bookmark, bmk010ProgrammeType, inside another bookmark, bmkTest, and using the REF field { REF bmkTest }, shouldn’t this return the value of bmk010Programmetype? -
Bonriki
AskWoody LoungerAndrew
I am trying to do it without using any code in the template -
Bonriki
AskWoody LoungerAndrew
That is correct they are only placeholders until the document is merged from the CRM. It is then that I want to use the results to compare and insert Autotext based on the result -
Bonriki
AskWoody LoungerAndrew
I think I understand what you are saying but not sure how to apply it.
This is the xml code used in our CRM for extracting data and placing it at the bookmark bmk010ProgrammeType in a report template,Is it the function that I have highlighted that needs to be changed?
-
Bonriki
AskWoody LoungerThe document (attached) is one to test the bookmark outputs from our CRM.
The bookmark used for the IF statement is the sixth on the page I have also tried to use this for the REF field.
-
Bonriki
AskWoody LoungerCharles hi
Can’t seem to get this to work.
40464-Bookmarks -
Bonriki
AskWoody LoungerAndrew thanks again
Works a treat.
Thought about the problem and seem to remember there was a reason for “hiding” the watermark but can’t remember. -
Bonriki
AskWoody LoungerAndrew hi
As I stated in the original post the report was designed to be printed o expensive bond paper when finalised. It contained a logo on the front page, hence the remove the logo “shape”, and “DRAFT” watermarks. The intention of the code was to remove the logo and watermarks.
Ideally we would like to remove the watermarks, which are only imbeded shapes -
Bonriki
AskWoody LoungerAndrew
The document is a hard copy of the code which is stored in a global template but used on the attached typical report
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 7 ISO /Windows 10 ISO
by
ECWS
58 minutes ago -
No HP software folders
by
fpefpe
6 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
2 hours, 15 minutes ago -
Stay connected anywhere
by
Peter Deegan
5 hours, 28 minutes ago -
Copilot, under the table
by
Will Fastie
2 hours, 43 minutes ago -
The Windows experience
by
Will Fastie
11 hours, 43 minutes ago -
A tale of two operating systems
by
Susan Bradley
2 hours, 39 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
17 hours, 3 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 8 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 1 hour ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 hour, 28 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 9 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 1 hour ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 1 hour ago -
regarding april update and may update
by
heybengbeng
2 days, 3 hours ago -
MS Passkey
by
pmruzicka
1 day, 5 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 10 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 21 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 9 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 5 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 14 hours ago -
AI slop
by
Susan Bradley
1 day, 8 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 15 hours ago -
Two blank icons
by
CR2
23 hours, 57 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 1 hour ago -
End of 10
by
Alex5723
4 days, 3 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 days, 1 hour ago -
test post
by
gtd12345
4 days, 9 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 23 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days, 1 hour ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.