"fixed objects will move" warning

V

Valeria

Dear experts,
I am trying to post this again as I haven't solved my issue yet.
I have a long spreadsheet (3000 rows) with columns where many cells contain
comments. This causes the spreadsheet to give this warning message "fixed
objects will move" whenever I try to autofilter.... and I need to hit escape
hundred times to get rid of this message.
Can you imagine how bad this can be when the users are going to have to use
this and autofilter items in the spredasheet!

Can you please help me? Any hint is precious. I have already tried the hint
from the previous post to use Displayalerts=false triiggered by the
autofilter (I have used the worksheet_calculation event on a subtotal)
however this gets triggered AFTER the messages are dispayed.

Many thanks in advance!
Best regards
 
D

Dave Peterson

I've never had any trouble with comments in an autofiltered range.

Maybe you have other shapes that are really tiny (or hidden???) that are causing
the trouble.

Hit F5 (edit|goto)|Special|objects

What gets selected?

Ron de Bruin has lots of code to work with shapes here:
http://www.rondebruin.nl/controlsobjectsworksheet.htm

If you can't clean up those shapes (since they're hidden) and you need help with
the macro, post back.

I'm sure you'll get help.
 
Z

zxcv

Dear experts,
I am trying to post this again as I haven't solved my issue yet.
I have a long spreadsheet (3000 rows) with columns where many cells contain
comments. This causes the spreadsheet to give this warning message "fixed
objects will move" whenever I try to autofilter.... and I need to hit escape
hundred times to get rid of this message.
Can you imagine how bad this can be when the users are going to have to use
this and autofilter items in the spredasheet!

Can you please help me? Any hint is precious. I have already tried the hint
from the previous post to use Displayalerts=false triiggered by the
autofilter (I have used the worksheet_calculation event on a subtotal)
however this gets triggered AFTER the messages are dispayed.

Many thanks in advance!
Best regards

I haven't seen your exact issue but I have seen similar effects with
comments. What you can try is to set the properties for the
comments. Right click on the edge of a comment->Format comment-
Properties->select Move but don't size with cells.

Sorry but I think you will have to do this for all of your comments.
 
V

Valeria

Hi Dave,
nothing is found with the procedure you described below "no objects found".
Also,w hen I get rid of all comments in the worksheet, I do not get the
warning any longer....
 
D

Dave Peterson

Maybe the comments got changed (like zxcv suggested).

You could run a macro to do his manual suggestion:

Option Explicit
Sub testme()

Dim CMT As Comment
Dim wks As Worksheet

Set wks = ActiveSheet

For Each CMT In wks.Comments
CMT.Shape.OLEFormat.Object.Placement = xlMoveAndSize
Next CMT

End Sub

If you're new to macros:

Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Hi Dave,
nothing is found with the procedure you described below "no objects found".
Also,w hen I get rid of all comments in the worksheet, I do not get the
warning any longer....
 
V

Valeria

Now you have really made my day. I was losing sleep on this issue and by
inserting what you said in my code (no I did not do it by hand - over 3000
comments!!!) it worked so beautifully.

sha.Cells(k, 7).Comment.Shape.Placement = xlMove

Many, many thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top