VBA application-defined or object-defined error

Ken Krugh

New Member
Joined
May 30, 2012
Messages
1
Greetings all. We have a shared Excel 2003 file that up to 7 of us access every day, all day, everyone using Excel 2003. This shared workbook opens another work book that has a bunch of macros used by the shared sheet. We have been using this file for YEARS with no issues but recently my computer is generating an "application-defined or object-defined" error with the command to set the position for the comment on a cell. The code looks like this where r is a range passed to a sub routine.

Code:
    With r.AddComment
        With .Shape
            .Height = CmtHt
            .Width = CmtWid
            .Placement = xlMoveAndSize
        End With
    End With

My computer is the only one that is having the problem. The only changes to the system that I can think I made was to install the "PDF Maker" portion of Acrobat 9 so I thought that was the problem. However, I've now un-installed that component of Acrobat, "reparied" Microsoft Office, removed and added back in Excel all to no avail.

Again, this worked yesterday, last night I made the change to the system with the Acrobat component, and now only I am getting the error on the .Placement command.

Any help would be greatly appreciated.

All the best,
Ken
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,216,730
Messages
6,132,398
Members
449,725
Latest member
Enero1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top