Moving Columns in Excel Tabe

Posted on 2009-04-21
Last Modified: 2012-05-06
I have an Excel table that consists of data being pull from various databases via odbc drivers.  This part is working fine.  What is happening is when I go to change the information in MS Query in Excel I get an error when I try to delete or add information to my table.  The message is as follows:
 "This operation is not allowed.  The operation is attempting to shift cells in a table on your worksheet"
Can someone tell me what I need to do to make changes in my table without having to start all over?

Question by:nursecore
    LVL 10

    Expert Comment

    When you build your query, you just have to move up/down a column to set the order...
    If you don't want to rebuild the whole thing, just place your cursor in a cell of this dataset, right-click with the mouse, and choose "Edit Query".  You will be able to set the order as you want

    Author Comment

    I it when I use "Edit Query" and make changes inside "Edit Query" that I get this error.  I have been doing this in Excel 97 and 2003 for many years and have no problem moving columns, but in 2007 it creates a table and seems to get this error when I want to shift columns around and delete columns.  There has to be some setting that is preventing these changes or I am just doing something wrong.  Just a note in case it matters, the table is link to an Access database that was created to allow a Table from Foxpro and a Table from SQL to connect.
    LVL 10

    Expert Comment

    Ok.  I thought that you were just selecting some columns in the spreadsheet, and tried to do a CUT & PASTE of a column to shift them.  But if you use the Edit Query, it should work.  But i'm using Excel 2003...   so sorry about 2007, but i can't help much.
    LVL 16

    Accepted Solution

    Since you have been working with MS-Query for a long time you may have already taken these steps but I thought it might be a place to start...  I am assuming you have done all your data manipulation in ACCESS and are just bringing the resultset across to Excel via MS-Query.
    From the DATA menu select PROPERTIES and uncheck the box that preserves columns/sort/etc... so the columns can be rearranged.  Then, on the MS-Query grid, delete all the field in the grid and then replace them from the Table box back into the grid in the order you want them to be displayed in the Excel sheet (table).  I ran several example just now and this worked without problems.  

    LVL 16

    Assisted Solution

    by:Jerry Paladino
    I hit enter before I got the other two graphics attached...

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    I've recently been in need of an Excel macro that could add a letter before the text on multiple cells in an Excel document. My English is as it is, so I will try explain what it does diffrently. If you have an excel document with 2000 rows an…
    Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
    The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
    This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now