+ Reply to Thread
Results 1 to 6 of 6

Shapes move in excel upon saving and reopening

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Washington D.C.
    MS-Off Ver
    Excel 2010
    Posts
    8

    Angry Shapes move in excel upon saving and reopening

    Greetings,

    BACKGROUND: I'm using a modified version of a choropleth map macro (http://www.clearlyandsimply.com/clea...ith-excel.html), with the goal of creating an automatic map/graphic generator for values for work publications. So, precision is key. I've uploaded a new set of shape objects and have been modifying them so we have a higher definition map than the one provided in the base worksheet, and am currently in the process of renaming the objects and groups so they colorize correctly. So far, doing okay.

    PROBLEM: Precision is key. The shapes move randomly so that countries aren't in the right place anymore whenever I save, close, and reopen the file. Not good since this has to be saved, shared, reopened repeatedly until the end of time and is a tool for non-computer savvy folks who won't take time to reposition the countries. Nothing changes, cells aren't resized. See the picture below for reference to the problem. More I save and reopen, or transfer via email, the more these things migrate. Tried across multiple computers, excel versions, etc.

    Untitled.jpg


    I'VE TRIED: Researching this thoroughly. Most suggestions are to adjust the properties of the shapes, to not move or resize, or to lock the objects. I've tried this, no solution. I've seen several similar threads, but no comments on if it worked or not or followup. It's not working for me. Tried adjusting objects to snap to grid or page, still not working. Looking through the code, it doesn't seem as though anything is changing the cells. So, I'm perplexed.

    Any suggestions? Sorry if putting this in the VBA section was the wrong spot, but I've looked through the general sections and all the suggestions to related issues didn't seem to be working. Worksheet is attached. Thanks in advance!

  2. #2
    Registered User
    Join Date
    08-18-2016
    Location
    Earth
    MS-Off Ver
    2010 and 2013
    Posts
    64

    Re: Shapes move in excel upon saving and reopening

    Try grouping the shapes together to see if that helps. Select each shape, right click, group.

    After locking the shapes have you tried protecting the worksheet before save?

    If the above don't work the only other way I can think of is to have a VBA code to re-position the shapes every time the workbook opens.

    Shapes not staying still is a common problem for many in Excel.

    When you reopen the file are the shapes always off in the same positions or is it in a random position every time?
    Last edited by Green Crocodile; 08-26-2016 at 06:31 PM.

  3. #3
    Registered User
    Join Date
    01-20-2013
    Location
    Washington D.C.
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Shapes move in excel upon saving and reopening

    Thanks for the reply!

    I've tried locking the workbook before closing, it lessens the number of shapes that migrate, but doesn't completely resolve the problem. I've tried grouping, but as some of the shape objects are already grouped, i.e. the bahamas, if you do a massive grouping then the macro does't color the sub-group. Probably something to do with the new name of the group vs. the name of the sub-group. This won't work because the object names are what is called upon to color them, so if the group name supersedes the subgroup name, it doesn't seem to work. And it definitely seems to be random. More testing is needed to confirm that.

    Would you happen to have an example of positioning script for objects? If I could find some way to set an absolute position on opening, that should work. It'll be time consuming, but I'm willing to do it. What would be incredibly helpful is figuring out their current position. Any thoughts? Thanks again!

  4. #4
    Registered User
    Join Date
    08-18-2016
    Location
    Earth
    MS-Off Ver
    2010 and 2013
    Posts
    64

    Re: Shapes move in excel upon saving and reopening

    Setting up the VBA to reposition the shapes when workbook is opened I think is well worth the time. You know you will be safe. See these two links. One to reposition shapes and the other to find the current coordinates.

    REPOSITION:
    http://www.mrexcel.com/forum/excel-q...ordinates.html
    Please Login or Register  to view this content.

    FIND COORDINATES:
    http://www.ozgrid.com/forum/showthread.php?t=98456
    Please Login or Register  to view this content.
    01001000 01101001 00100001

  5. #5
    Registered User
    Join Date
    02-17-2016
    Location
    Wales
    MS-Off Ver
    365
    Posts
    1

    Re: Shapes move in excel upon saving and reopening

    Hi,
    I've had the same trouble and searched many forums online and tried all the suggestions like selecting the checkbox for "locked" and "Don't move or size with cells" under properties. However none of these worked with Excel in Office 365. I didn't have this problem in earlier versions of Excel. After almost 2 weeks of breaking my head over this, I finally found a solution - by using VBA to zoom in and out of the sheet that had the shapes in when you open the workbook. Insert the code below to 'ThisWorkbook'

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Shapes move in excel upon saving and reopening

    Further to GC's post.

    below will record the image positions on close and then reposition them on open.

    although hopefully nsmdr's simple solution helps you.

    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drop down list disapears after saving and reopening
    By NateTheGreat in forum Excel General
    Replies: 3
    Last Post: 03-02-2014, 05:54 PM
  2. Replies: 1
    Last Post: 03-01-2013, 06:59 PM
  3. how to move excel shapes
    By jonelamora in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-24-2012, 10:45 PM
  4. Move Shapes to Grid in Excel
    By Environment in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2011, 08:40 AM
  5. How can I retain text box entries on a user form after saving and reopening?
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2011, 12:17 AM
  6. How To Move Shapes From Another Shapes? (floating shapes)
    By MarcLev in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2009, 04:04 PM
  7. Dictionary and saving workbook/ reopening
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2006, 12:30 AM
  8. Removing textbox after saving and reopening document?
    By curlyfry76 in forum Excel General
    Replies: 1
    Last Post: 04-12-2005, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1