View Single Post
 
Old 06-24-2016, 07:46 AM
jstills116 jstills116 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Jun 2016
Posts: 1
jstills116 is on a distinguished road
Default Word 2010 Run-Time error 4198 with Insert Picture with Caption and Fram Macro

Hi Everyone,

I'm having troubles with a macro that I put together in Word 2010. The purpose is to allow the user to select an image of their choice, format it to meet specs, and do the following:
  • put a caption above it, delete the caption number, change caption color to black
  • Select the caption and image
  • Put a box around the two paragraphs
  • Reduce margins for two paragraphs by 1.5" on left and right
  • Insert a paragraph and reset style to Normal
The weird thing is that it works just fine when I use it on my machine. However, when I have it tested by other users, they get a Run-Time 4198 Error in the same place every time. I've tried splitting the macro into two separate ones, and that doesn't fix anything.

I'm relatively new to this, so I appreciate any help someone can give me. I've attached a copy of the macro and highlighted where the error occurs.

One challenge I may face with this is that some contractors supporting my office may try using this with newer versions of Office, and I know that will really mess things up.

Thanks for any help,
J C
Attached Files
File Type: docx 4198 Macro Text.docx (15.9 KB, 9 views)
Reply With Quote