SlinkRN
Well-known Member
- Joined
- Oct 29, 2002
- Messages
- 715
I found the code
on this forum and it worked wonderfully to open the find dialogue box.
I was then trying to get the box to close when I ran the code to return to the start page. I couldn't get it to disappear by using "Hide" or "Visible=false" so I tried the code:
I am afraid that I somehow deleted that control ID because now the execute code returns a Run-time error '91' Object variable or With block variable not set.
Anyone know how I can undo that Delete code that I ran? Thanks, Slink
VBA Code:
Application.CommandBars.FindControl(ID:=1849).Execute
I was then trying to get the box to close when I ran the code to return to the start page. I couldn't get it to disappear by using "Hide" or "Visible=false" so I tried the code:
Code:
Application.CommandBars.FindControl(ID:=1849).Delete
Anyone know how I can undo that Delete code that I ran? Thanks, Slink