Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel 2010 Unreadable Content error

Posted on 2011-09-28
5
Medium Priority
?
511 Views
Last Modified: 2012-05-12
Excel 2010 SP 1. Windows 7.

I have a workbook that was originally created on XP machine with either Office 2007 or 2003.

The workbook has this macro that adds a row to the spreadsheet and then sorts the rows:

 
Sub AddRow()
'
' AddRow Macro
    ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Add Key:=Range("A3:A200") _
        , SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
    With ActiveWorkbook.Worksheets("Sheet1").Sort
        .SetRange Range("A3:AZ200")
        .Header = xlNo
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
    Rows("2:2").Select
    Selection.Copy
    Selection.Insert Shift:=xlDown
    Rows("3:3").Select
    Selection.Locked = True
    Rows("3:3").Select
    Selection.Locked = False
    Selection.FormulaHidden = False
    Rows("3:3").RowHeight = 27
    Range("A3").Select
    Application.CutCopyMode = False
    
End Sub

Open in new window


I run the macro, everything works fine, I save and close the file.

When I reopen the file, I get this:

 Error
I click "Yes" and then get this:

 Repairs
I click on the "view log file" link and get this:

 Log File
When I save, close, and reopen, everything works fine again. I can reopen the file without problems. But, once I run the macro, save, and close, then the error comes back.

Thanks.
0
Comment
Question by:carlosab
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 12

Expert Comment

by:viralypatel
ID: 36715850
0
 

Author Comment

by:carlosab
ID: 36715858
Thanks viarly,

I had reviewed that kb article, but don't know how to "remove the expressions from all Current Time Member properties" and it doesn't tell me.
0
 
LVL 19

Expert Comment

by:regmigrant
ID: 36900900
I have had this when I save a Pivot table created by earlier version of excel in 2010 back to the original format. The only solution I've found is to delete and recreate the pivot table and save in native 2010 format. I *think* this would result in removing the Current Time properties mentioned in the article but as I dont use the analysis tools mentioned I wouldnt know
Reg
0
 

Accepted Solution

by:
carlosab earned 0 total points
ID: 36901035
I added .SortFields.Clear to the end of my sort code and that appears to have resolved the problem.
0
 

Author Closing Comment

by:carlosab
ID: 36929462
My comment is the solution.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

722 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