Probable bug on Excel 2010

It's more of a heads up for you guys since I didn't find anything about it on the internet. 
Edited to explain a bit better:  I posted this after noticing that in some situations some cells from Excel when converted for C# (using FromOADate) will seemingly lose one second, a cell with the date "10/19/2014 12:15 PM" would turn into
"10/19/2014 12:14:59 PM" inside a C# application.
I'm using version 14.0.7128.5000 (32-bit) and if I auto-increment dates, and if both dates used for the auto-increment have 12pm time in it, the auto-increment will lose 5 milliseconds per cell, at least that's what I get when trying to read those cells
on C# using openxml.  The values will show up normally on excel but when I convert them using FromOADate they will seem like they have one second less (but it's actually only 5 milliseconds less per cell dragged).
To reproduce this bug I use the following steps:
- Cell A2 - 10/19/2014 12:19 PM
- Cell A3 - 10/19/2014 12:18 PM
- Select both cells
- click on the little square on the bottom right of the cell selection
- drag it down
- try to read the fields A4 and below on C# using openxml
The first two cells written by hand will remain with the correct values but the cells A4 and below will "lose" 5 milliseconds for each cell.
Cells will display the correct value on excel but will have less milliseconds than they should for a FromOADate conversion.
The dates don't even need to be on the same day, you just need to have both dates having a 12PM time in it.
My locale is pt-BR or something, I can look into it more accurately if needed, in case you can't reproduce this bug.
Cheers.

If Excel is to slow for you, use database (MSSQL/MySQL/Oracle..or ACC), or work using VBA on array to paste in Worksheet when you done.
Oskar Shon, Office System MVP - www.VBATools.pl
if Helpful; Answer when a problem solved

Similar Messages

  • BUG in Excel 2010 SUMIF & SUMIFS functions [EDIT: also AVERAGEIF & -IFS]

    I am quite certain that there is a bug in the implementation of the SUMIF function of Excel 2010. In certain special cases the function returns
    its evaluation argument instead of the correct result. This bug is reproducible in Excel 2010, but does not occur in Excel 2007 (or earlier, as far as I can tell).
    The SUMIF function accepts the arguments "Range", which is the range of identifiers which the function evaluates against; "Criteria", which is
    the criteria that defines which members of "Range" will be chosen to sum, and "Sum_range", which is the (optional) range of values to sum. "Range" and "Sum_range" do not need to reside on the same worksheet in order for the function to return correct results.
    This means that "Range" and "Sum_range" can refer to the same column of different worksheets, and this is where the bug occurs. As an example,
    say we have the formula =SUMIF(Sheet1!E:E;2;Sheet2!E:E). This will return 2 (i.e. the "Criteria" argument), regardless of which values are in column E of Sheet2. If we move the data in Sheet2 to column D or F, however, the same formula (e.g. =SUMIF(Sheet1!E:E;2;Sheet2!F:F)
    will return the correct result.
    I have just noticed that the same error occurs with the SUMIFS function.
    Bug resolution please? :)

    Hi!
    An alternative methd don't solve my problem. Although I state that the 32bit version of Excel 2010 is now corrected of this bug. I wonder why the 64bit version is not....  I have to work with large Excel files and with this king of bugs I can't get
    the most of 64bit Excel.
    I'm surprised that no alternative methods of calculation will work in Excel 2010 64-bit and be compatible with other versions.
    So what other functions do not work?
    I guess SUMPRODUCT also doesn't work when referring to a range in another workbook. That is one of the ways we used to get the same results as AVERAGEIF before that function became available in 2007.  There are also array formulas that can refer to
    other worksheets.
    Or is your problem solely related to not being able to use particular functions in Excel 2010 64-bit, and not to solving your calculation problem?
    Ron
    I've upgraded the Office version from 2007 to 2010 64bit and I want to use my earlier Excel files to calculate and update data that I need to use in another software.
    I noticed that the averageif and sumif formulas don't update their values if they refer to other worksheets or workfiles and after a web search I get to this forum.
    I inferred that these bugs were corrected for all versions of Excel 2010… that’s not the case!
    My workfiles are huge and I have to do calculations between workfiles and worksheets, update existing links, and so on… Excel 2010 64bit perform very well in
    my machine in terms of speed! But not with these bugs!!!
    Since I have not the time to redo all my previous work (done in Excel 2007) you can say that my problem solely relates to not being able to use particular functions
    in Excel 2010 64-bit!!! I have deadlines!!!
    I suppose that Microsoft would gladly thank its customers to report bugs of its products and would try to solve them! I guess wrong!!! Sorry for that!

  • Excel 2010 bug -- cannot place controls on chart properly after changing paper size

    I have encountered unexpected behavior in Excel 2010 when placing controls on a chart that is a separate sheet. The issue is that the controls (e.g. spinner, scroll bar, etc.) cannot be placed or moved to the right side or the bottom.
    Steps to reproduce:
    1) create a chart as a separate sheet
    2) change the paper size to, for example, A6 (4.13" x 5.83")
    3) change paper size back to Letter (8.5" x 11")
    4) controls cannot be placed on right side or bottom of chart.
    It appears that instead of using the current dimensions of the chart paper size to determine where controls may be placed, the smallest dimensions that have ever been applied to the chart are used.
    I am looking for a workaround for this issue since I would like to use a paper size large than 8.5" x 11", but I cannot place controls on such a chart properly at this time.
    Any ideas?

    I have found a workaround for this issue:
    1) change paper size in your default printer's preferences to the paper size you want in Excel.
    2) afterwards insert or create the chart. It is automatically the correct paper size, and controls can be placed or moved properly.
    3) change default printer paper size back.
    In case your chart has already been created, simply copy the existing chart in step 2 instead of inserting/creating.
    Aidan
    Edit: credit to http://webdesignerpark.blogspot.com/2013/02/paper-size-to-set-your-default-paper.htmlfor the idea on changing default paper size.

  • Trying to connect Excel 2010 to Oracle

    Hello,
    I am trying to connect Excel 2010 directly to the Oracle database at work. I was hoping to combine VBA and SQL to automate queries without having to use SQL Developer or the bespoke enterprise software to then export the data into a spreadsheet. I have downloaded the ODBC driver and installed it onto my PC. I have tried to configure the connection and the tnsnames.ora file but it will not connect (I can get the exact error from work tomorrow).
    I have an XML file that contains all of the connection details (such as the ports, passwords and the server name) for the databases that I need to access. There isn’t anyone who can help me at work as the former IT manager has left and my current manager has very little technical knowledge.
    The network is managed by a different part of the business at an external site containing all of the servers. Although I have an administrator account, it is very restricted so I cannot use the command prompt but I can install software.
    I would be grateful for any advice. If it helps the operating system I am using is Windows Vista 32-Bit. I am unsure which version of Oracle we are using (it might be 10g but is there anything I could type into SQL Developer that would display the version of Oracle I am using?).
    Many thanks in advance and sorry for probably not explaining things very well,
    Matt

    I think I am going to give in with ODBC for the time being and I don’t want to waste any of your time.
    Just to make everything clear in case I missed something important out:
    I ran the select banner from v$version statement and retreived:
    Oracle Database 10g Release 10.2.0.5.0 - 64bit Production
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE 10.2.0.5.0 Production"
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    I originally installed the latest version of 11g ODBC and reinstalled it as I didn't think it was working. I then installed 10g version today but I couldn't find ODBC.exe file like I could in the 11g version.
    I can't get the tnsnames.ora file off the database server as I can't connect to it. I know the server name but I think I may be restricted from accessing it as the network and user accounts are really locked down. I read somewhere when I was searching that there was a way of generating the tnsnames.ora file which would be quite useful as there wouldn't be any mistakes.
    Like I have mentioned before I can’t access the command prompt and the only way I can connect to the database is through SQL Developer (which I have all the connections for in an XML file).
    I tried the ADO method and it didn't work, but after getting home and trying something I know how to resolve the ActiveX Objects related error I was getting, so maybe I could get this method to work.
    It is just frustrating that I know this could work but things aren’t as simple as I thought although the advice I have received has been really useful. Thanks for all the help.

  • Excel 2010 changes relative link paths to absolute in files synced with Offline Files in Windows 7

    Hello! I'm wondering if anyone else has seen this problem: I have a large number of Excel 2010 and 2003 files in a folder on my file server. This whole folder is also synced to my computer using Offline Files in Windows 7. I have a lot of references between
    cells in different Excel files, and all referenced workbooks are physically in the same folder. This all works nicely when I create these files at work - all file paths referenced in the cells are created as relative paths and the documents open correctly.
    This is, I understand, the expected and default behavior when Excel creates links. When I edit these files at home, nothing seems odd until I get back to work and sync these files back to the file server. At this point, I discovered that Excel 2010 has, when
    I saved the files while away from the corporate network, changed /all/ the cell references in any offline-edited Excel files to point at absolute paths, and that these absolute paths point to somewhere in my %APPDATA% structure. So whenever I come to work
    and I try to open an Excel file that I have recently worked with offline, I get a bunch of error messages about referenced files that are missing, although clearly they exist in the same folder as the file I've opened, and I must edit all the file references
    again, whereupon they are again created correctly as relative paths (since all files exist in the same folder), which are promptly mangled into absolute C:\....\Offline Files\.....\..... paths whenever I save them at home (and since that works too, I don't
    notice it again until I come back to work and the offline files are synced back to the real network location). This seems to be a case of Windows 7's Offline Files not being able to fool Excel 2010 into believing it is working on a file server - apparently
    Excel 2010 can see through the fakery and decides on it's own to "fix" the problem (which obviously isn't a problem since the paths are relative to begin with) by saving the paths as absolute paths instead. Yes, really clever, Excel. The exepected behavior
    according to MSKB is that links are created as relative paths, so why does it change to absolute whenever Offline Files are involved? I know Offline Files only syncs, it doesn't actually change the files, so I can conclude that Excel is the program at fault
    here. Is there a fix for this, or a known workaround? Because frankly, this bug makes it impossible for me to work in any advanced manner with linked Excel files. The sad thing is that this worked perfectly fine with Office 2003 and Windows XP. Is there a
    patch for this problem that I might have missed (I am running the latest Service Pack and I get Office updates from Microsoft Update). If not, is there a workaround I can use to prevent Excel from corrupting my links when I edit the files offline?

    Hello danceswithwindows,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    Sincerely
    Rex Zhang
    Rex Zhang
    TechNet Community Support

  • Bug in Excel's handling of metadata? Or at least a deviation from the Open Office XML specification?

    I've discovered some very strange behaviour in Excel which seems to be contrary to that documented in the Open Office XML specification (OOXML). I couldn't find a way to report bugs against Excel, so I thought I'd try to explain the issue here.
    In short it seems that Excel is removing, and incorrectly re-indexing the metadata I programatically associate with cells.
    First, a summary of the relevant parts of the specification:
    From OOXML 18.9: There are two types of metadata: "cell metadata" and "value metadata".
    Cell metadata follows the cell as it moves. Value metadata follows the value through formulae etc.
    From OOXML 18.3.1.4: The c (cell) element has cm and vm attributes which are both documented as "The zero-based index of the [cell|value] metadata...in the Metadata Part"
    From OOXML 18.9.17: The valueMetadata is "a collection of block element that each define the value metadata for a particular cell". "Cells in the workbook index into this collection".
    The valueMetadata contains bk elements which in turn contain rc (metadata record) elements
    From OOXML 18.9.15: rc elements have t (type index) and v (value index) attributes. t is a 1-based index into metadataTypes and v is a 0-based index into the futureMetadata element which matches the name of the metadata type.
    Here's an example of what this might look like:
    <c vm="0"> <!-- vm points to the first bk inside valueMetadata below -->
    <x:valueMetadata>
    <x:bk>
    <x:rc t="1" v="0" /> <!-- t points to the first metadataType below. v points to the first bk in the futureMetadata below (whose name matches the metadataType to which t points) -->
    </x:bk>
    </x:valueMetadata>
    <x:metadataTypes>
    <x:metadataType name="MyMetaType" ... /> <!-- name dictates which futureMetadata valueMetadata's v attribute indexes into -->
    </x:metadataTypes>
    <x:futureMetadata name="MyMetaType" ...>
    <x:bk>
    <x:extLst>
    <x:ext xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main" uri="http://example.com/extension" p5:value="test value" xmlns:p5="http://example.com/extension" />
    </x:extLst>
    </x:bk>
    </x:futureMetadata>
    The Problem
    From what I can tell, for values of n > 2, if you associate n cells with metadata, Excel will drop the last piece of metadata, and the one at index 1, and it will do so silently. The indices are then 0..n-3, and the association for all but the first (0
    index) will be wrong. This renders the future metadata totally useless.
    For n == 1, Excel just removes the last piece of metadata (index 1). If we try 1-based indexes for the vm attribute on the c element, we get different behaviour. This may not be relevant as it is contrary to the specification, but the slightly better behaviour
    might indicate an off-by-one error:
    n
    Deleted Indices (0-based) when using 0-based indices
    Deleted Indices (0-based) when using 1-based indices
    1
    0
    None
    2
    1
    1
    3
    1,2
    1
    4
    1,3
    1
    5
    1,4
    1
    6
    1,5
    1
    Demonstrating the Problem
    I have some example code[1] that demonstrates the problem. You will need a file called test.xlsx with cells A1..C2 populated.
    Compile the source as AddMetadata.exe then run with the test file as the only parameter:
    > AddMetadata.exe test.xlsx
    You can look at test.xlsx in Excel, Visual Studio (with the Open XML Package Editor Power Tool for Visual Studio 2010) or the Open XML SDK 2.0 Productivity Tool for Microsoft Office. Looking at the file before and after running AddMetadata.exe you should
    be able to reproduce the behaviour documented above.
    Summary
    It would be good to know if this is really an Excel bug or whether we're doing something wrong / unsupported. Any insight would be very much appreciated.
    [1] The Example code:
    namespace AddMetadata
    using System;
    using System.Linq;
    using DocumentFormat.OpenXml;
    using DocumentFormat.OpenXml.Packaging;
    using DocumentFormat.OpenXml.Spreadsheet;
    public class Program
    // The cells to associate with metadata
    private readonly static CellSpec[] CellSpecs = new[]
    new CellSpec{ Sheet = "Sheet1", Column = "A", Row = 1 },
    new CellSpec{ Sheet = "Sheet1", Column = "B", Row = 1 },
    new CellSpec{ Sheet = "Sheet1", Column = "C", Row = 1 },
    new CellSpec{ Sheet = "Sheet1", Column = "A", Row = 2 },
    new CellSpec{ Sheet = "Sheet1", Column = "B", Row = 2 },
    new CellSpec{ Sheet = "Sheet1", Column = "C", Row = 2 },
    private static readonly uint NumCells = (uint)CellSpecs.Length;
    private const string SPREADSHEET_ML_NS = "http://schemas.openxmlformats.org/spreadsheetml/2006/main";
    private const string METADATA_TYPE_NAME = "MyMetaType";
    private const string EXTENSION_URI = "http://example.com/extension";
    public static void Main(string[] args)
    if (args.Length != 1)
    Console.Out.WriteLine("AddMetadata <doc.xslx>");
    Console.Out.WriteLine(" Adds metadata to the specified document to demonstate some strange Excel behaviour");
    Environment.Exit(1);
    try
    var doc = SpreadsheetDocument.Open(args[0], true);
    StripMetadata(doc);
    AddMetadata(doc);
    AddMetadataType(doc);
    AddFutureMetadata(doc);
    AddMetadataRecords(doc);
    AssociateCellsWithMetadata(doc);
    doc.WorkbookPart.Workbook.Save();
    doc.Close();
    catch(Exception e)
    Console.Out.WriteLine(e);
    /// <summary>
    /// Strip any existing metadata.
    /// </summary>
    /// <param name="doc">The document</param>
    private static void StripMetadata(SpreadsheetDocument doc)
    var wbPart = doc.WorkbookPart;
    var cellMetadataPart = wbPart.GetPartsOfType<CellMetadataPart>().FirstOrDefault();
    wbPart.DeletePart(cellMetadataPart);
    /// <summary>
    /// Add basic metadata part structure.
    /// </summary>
    /// <param name="doc">The document</param>
    private static void AddMetadata(SpreadsheetDocument doc)
    doc.WorkbookPart.AddNewPart<CellMetadataPart>();
    doc.WorkbookPart.CellMetadataPart.Metadata = new Metadata { MetadataTypes = new MetadataTypes() };
    /// <summary>
    /// Add the metadata type used by all the metadata we're adding
    /// </summary>
    /// <param name="doc"></param>
    private static void AddMetadataType(SpreadsheetDocument doc)
    var metadata = doc.WorkbookPart.CellMetadataPart.Metadata;
    var metadataType = new MetadataType
    Name = METADATA_TYPE_NAME,
    Assign = false,
    CellMeta = false,
    ClearContents = false,
    ClearAll = false,
    ClearComments = true,
    ClearFormats = true,
    Coerce = false,
    Copy = true,
    Delete = false,
    Edit = true,
    Merge = true,
    MinSupportedVersion = 0U,
    PasteAll = true,
    PasteBorders = false,
    PasteColWidths = false,
    PasteComments = false,
    PasteDataValidation = false,
    PasteFormats = false,
    PasteFormulas = false,
    PasteNumberFormats = false,
    PasteValues = true,
    RowColumnShift = true,
    SplitAll = false,
    SplitFirst = false
    metadata.MetadataTypes.AppendChild(metadataType);
    /// <summary>
    /// Add future metadata blocks which contain the actual metadata for each cell.
    /// They are referenced by the metadata records.
    /// </summary>
    /// <param name="doc">The document</param>
    private static void AddFutureMetadata(SpreadsheetDocument doc)
    var metadata = doc.WorkbookPart.CellMetadataPart.Metadata;
    var futureMetadata = metadata.AppendChild(new FutureMetadata());
    futureMetadata.Name = METADATA_TYPE_NAME;
    futureMetadata.Count = NumCells;
    // Future metadata area
    for (var i = 0; i < NumCells; i++)
    // The metadata for each cell will be single FutureMetadataBlock containing an extension list with a single extension.
    FutureMetadataBlock futureMetadataBlock = futureMetadata.AppendChild(new FutureMetadataBlock());
    ExtensionList extLst = futureMetadataBlock.AppendChild(new ExtensionList());
    Extension ext = extLst.AppendChild(new Extension());
    ext.Uri = EXTENSION_URI;
    ext.AddNamespaceDeclaration("x", SPREADSHEET_ML_NS);
    ext.SetAttribute(new OpenXmlAttribute("value", ext.Uri, string.Format("test value {0}", i)));
    /// <summary>
    /// Add metadata records which point to each future metadata block.
    /// They are in turn referenced by the cells.
    /// </summary>
    /// <param name="doc">The document</param>
    private static void AddMetadataRecords(SpreadsheetDocument doc)
    var metadata = doc.WorkbookPart.CellMetadataPart.Metadata;
    // Value metadata area
    ValueMetadata valueMetadata = metadata.AppendChild(new ValueMetadata());
    for (uint i = 0; i < NumCells; i++)
    // Type is 1-indexed, index into future metadata is 0-indexed
    var metadataBlock = valueMetadata.AppendChild(new MetadataBlock());
    var metadataRecord = metadataBlock.AppendChild(new MetadataRecord());
    metadataRecord.Val = i;
    metadataRecord.TypeIndex = (uint)1;
    /// <summary>
    /// Associate existing cells with existing metadata.
    /// </summary>
    /// <param name="doc">The document</param>
    private static void AssociateCellsWithMetadata(SpreadsheetDocument doc)
    for (uint i = 0; i < CellSpecs.Length; i++)
    var cellSpec = CellSpecs[i];
    var cell = GetCell(doc, cellSpec.Sheet, cellSpec.Column, cellSpec.Row);
    if (cell == null)
    throw new ArgumentException(string.Format("Cell {0} not found in row {1} of sheet {2}", cellSpec.Column, cellSpec.Row, cellSpec.Sheet));
    cell.ValueMetaIndex = i;
    /// <summary>
    /// Get a cell given the document, sheet name, column name and row index.
    /// </summary>
    /// <param name="doc">The document</param>
    /// <param name="sheetName">The sheet name</param>
    /// <param name="columnName">The column name</param>
    /// <param name="rowIndex">The row index</param>
    /// <returns>The cell</returns>
    private static Cell GetCell(SpreadsheetDocument doc, String sheetName, String columnName, uint rowIndex)
    var row = GetRow(doc, sheetName, rowIndex);
    if (row == null)
    throw new ArgumentException(string.Format("Row '{0}' not found", rowIndex));
    return row.Elements<Cell>().Where(c => c.CellReference.Value.StartsWith(columnName)).FirstOrDefault();
    /// <summary>
    /// Get a worksheet part by sheet name.
    /// </summary>
    /// <param name="document">The document</param>
    /// <param name="name">The sheet name</param>
    /// <returns>The worksheet part</returns>
    private static WorksheetPart GetWorksheetPartByName(SpreadsheetDocument document, string name)
    // Get Sheet by name from Sheets in Workbook
    var sheet = document.WorkbookPart.Workbook.GetFirstChild<Sheets>().Elements<Sheet>().Where(x => x.Name == name).FirstOrDefault();
    // Lookup WorksheetPart by Id
    return sheet == null ? null : (WorksheetPart)document.WorkbookPart.GetPartById(sheet.Id.Value);
    /// <summary>
    /// Get a row given the document, sheet name and row index.
    /// </summary>
    /// <param name="doc">The document</param>
    /// <param name="sheetName">The sheet name</param>
    /// <param name="rowIndex">The row index</param>
    /// <returns>The row</returns>
    private static Row GetRow(SpreadsheetDocument doc, String sheetName, uint rowIndex)
    var worksheetPart = GetWorksheetPartByName(doc, sheetName);
    if (worksheetPart == null)
    throw new ArgumentException(string.Format("Sheet '{0}' not found", sheetName));
    return worksheetPart.Worksheet.GetFirstChild<SheetData>().Elements<Row>().Where(r => r.RowIndex == rowIndex).First();
    struct CellSpec
    public string Sheet;
    public string Column;
    public uint Row;

    If you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
    So, I ended up with something like:
    <c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
    <metadataTypes count="1">
      <metadataType name="MyMetaType" .../>
    </metadataTypes>
    <futureMetadata count="1" name="MyMetaType">
      <bk>
        <extLst><ext
    uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
      </bk>
    </futureMetadata>
    <cellMetadata count="1">
      <bk><rc
    t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
    </cellMetadata>
    Hope this helps. 

  • Smartview 11.1.2.1.0/Excel 2010

    I am using Smartview version 11.1.2.1.0 and am having issues trying to access Essbase in Excel 2010. If I try to access member selections from my Smartview menu Excel 2010 just freezes. If I try to just type in the member selections and refresh I will get #NoAccess for my results but I am connected if I look at the sheet information.
    Thanks for any help you can offer

    Thanks for the information, but one last question. Where could I find more information about this Unpublished Bug 9955285?, I am trying to look for more information about if it's going to be fix in any patch but I don't find anything
    Thanks a lot

  • Smartview 11.1.2 "Hyperion" tab disappeared from his Excel 2010.

    My user's Smartview 11.1.2 "Hyperion" tab disappeared from his Excel 2010. Trust Center shows that Add-In's are not disabled. We reinstalled and installed SV but nothing worked. What can we run to register SV to his Excel 2007? His Excel 2010 does have Smartview Add-in for HsTbar, Hsaddin.dll

    Please note that the 'solution' of copying files to the Addins folder is NOT recommended. You will probably cause more issues or store up problems for the future, such as when you upgrade the SmartView client. Believe me -- we get a lot of calls into Support caused by people doing this. It can cause:
    - loss of functionality owing to mixed file versions
    - the full path to HsTBar.xla to appear in front of SmartView functions
    - DLL hell when it comes to upgrading.
    Please check your system for duplicate copies of HsTBar.xla and HsAddin.dll and remove all but the ones in the correct SmartView installation folder. Also delete any duplicates of the other SmartView DLLs. Then re-register the DLLs in the SmartView\bin folder according to Jasmine's instructions. Note that you must be logged into your PC as a Power User or Administrator to do this. You should get a 'success' message for each DLL you register. Alternatively, uninstall SmartView, search for any remaining SmartView files (HsTBar.xla, HsAddin.dll) anywhere on the hard drive and delete them, then re-install.
    If you still get problems, log a support call.
    Edited by: user807652 on Feb 17, 2011 4:28 AM

  • 32-bit...64-bit...Excel 2007...Excel 2010...nonetheless a .xlsx File

    My head is spinning...soooooo here's the deal...
    The client provides us a .xlsx File. Now I have no idea how this is created and saved...via Excel 2007...Excel 2010
    When I attempt sourcing the .xlsx File in my SSIS Package I get the error "External Table is not in the expected format"
    Sooooo, I figure I'd write a C# Edit Script to read .xlsx File and Save it as a .xls file using the following syntax...
    string StrFileName = (Dts.Variables["User::FileName"].Value.ToString());
    StrFileName = Path.GetFileNameWithoutExtension(StrFileName);
    string StringSourceFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xlsx";
    string StringDestinationFile = (Dts.Variables["User::FilePath"].Value.ToString()) + StrFileName + ".xls";
    // This initiates the Excel Application
    Microsoft.Office.Interop.Excel.Application excelApplication = new Microsoft.Office.Interop.Excel.Application();
    // This Opens the Source .xlsx File from Emdeon ePaySmart
    Workbook workbook = excelApplication.Workbooks.Open(StringSourceFile, XlUpdateLinks.xlUpdateLinksNever, true, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // This will Save the Source .xlsx Emdeon ePaySmart File as a .xls File...note xlFileFormat.xlExcel5
    workbook.SaveAs(StringDestinationFile, XlFileFormat.xlExcel8, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // This will Close the Source
    workbook.Close(false, Type.Missing, Type.Missing);
    // This shuts down the Excel Application
    excelApplication.Quit();
    Note xlFileFormat.xlExcel8
    Now this worked PERFECTLY client side. Then when I created a SQL Server Agent Job it blew up and from what I read the SQL Server Agent Job does not like running dynamic Excel commands.
    Soooooooo now I'm back at the drawing board and figured I'd use OLE DB to source the file.
    I am using this Connection String for the .xlsx File
    string StringConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sourceFile + ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\"";
    Now I understand that the OLEDB.4.0 Connection string is incorrect for a .xlsx File. (Which is why I probably tried to do this with dynamic Excel commands to begin with)
    Now comes the chicken and the egg problem...
    If instead I try using the OLEDB.12.0 Connection String it tells me it isn't installed
    My network, copied Microsoft Office 2010 installed is 32-bit
    So if I try to install the 64-bit Microsoft Access Database Engine 2010 it tells me I have to Uninstall Microsoft Office 2010. Well that is not possible
    So my question is this...How in God's name can I try and process this .xlsx File??? I am at a complete loss here.
    I did come upon this Posting previously...in italics below but it fell short in terms of providing a solution.
    Can anyone please help me out here?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85
    When I create my connection manager to connect to a .xlsx file, I get the error message that says:
    "Test connection failed because of an error in initializing provider. External table is not in the expected format."
    The provider selected was the ole db "Microsoft office 12.0 Access Database Engine...", and in the All tab I entered "Excel
    12.0" at the top where it says Extended properties.
    Here is the stumper:
    My import package(s) has (have) been running manually for the last 2-3 weeks, but now i've finished an automated system that downloads
    the files from the ftp site, unzips them, validates all the expected files are there, renames and relocates the files to the names/locations expected by my ETL, and then runs the ETL.
    I found out today that the people who manually did this process were each time opening the file and then saving it to the correct location
    in Excel 2007. 
    When I try to run my ETL on the files in the automated process, it fails with the above error. If, however, I just open the file and
    save it (also in 2007), it runs fine. I have been trying to figure out what saving the file is doing to change it to be in the expected format.
    I have tried to use an excel 2003 connection to connect to a copy of the file with a modified extension of .xls and that didn't work.
    (in case it was in another version of excel and someone just changed the ext)
    I then tried to access the file with the OLE DB provider, as above, but instead of entering 12.0 on the Extended properties line, entering
    9.0 or 14.0 in turn (creating new sources/connections each time), and when I do that, both times I get an error that says: 
    “Test connection failed because of an error in initializing provider. Could not find installable ISAM.”
    Am I missing something? Is there something else that simply opening and saving the file might be doing to make it paletable to ssis?
    If we install excel on the db server I realize i could probably open it up and save it as excel 2007 and that would do the trick, but
    the dba is resistant to this idea, so I thought I'd see if anyone has any other ideas?
    If we do have to install excel on that server, does the version have to be excel 2007 in order to programmatically save it as type 2007?
    thanks in advance for your thoughts on the issue...

    You just need to install the latest ACE OLEDB (JET) provider, then when you set the package to run use a proxy with proper rights to access the Excel file on the file system.
    http://www.microsoft.com/en-ca/download/details.aspx?id=13255
    Arthur
    MyBlog
    Twitter

  • What algorithm does Excel 2010 use for Pseudo Random Number Generation (MT19937?)

    Does Excel 2010+ use the Mersenne Twister (MT19937) algorithm for Pseudo Random Number Generation (PRNG), implemented by the RAND() function?
    This has been a nagging question for some time now, with "hints" that it indeed does.  However, a relatively thorough search turns up no definitive documentation.  The most direct indication is perhaps given by Guy Melard [Ref 9] where
    he tests Excel 2010's RAND() function using the Crush battery of tests in TestU01 by L'Ecuyer & Simard.  Melard references a "semi-official" indication that Microsoft did indeed implement MT19937 for the RAND() function in
    Excel 2010, but this reference no longer seems to be available. http://office.microsoft.com/enus/excel-help/about-solver-HP005198368.aspx?pid=CH010004571033.
    The other references below [Ref 1-10] document the history of the statistical suitability of the PRNG and probability distributions in various versions of Excel.  This includes the Wichmann-Hill PRNG implementations supposedly (arguably) used in
    Excel 2003 & 2007 for random number generation.  But still, we have no answer as to which PRNG algorithm is used in
    Excel 2010 (and 2013 for that matter).
    Microsoft indicates that RAND() has been improved in Excel 2010; Microsoft states, "...and the RAND function now uses a new random number algorithm." (see https://support.office.com/en-ca/article/Whats-New-Changes-made-to-Excel-functions-355d08c8-8358-4ecb-b6eb-e2e443e98aac). 
    But no details are given on the actual algorithm.  This is critical for Monte Carlo methods and many other applications.
    Any help would be much appreciated. Thanks.
    [Ref 1] B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 97. 
    Computational Statistics & Data Analysis. Vol. 31 No. 1, pp 27-37. July 1999.
    http://users.df.uba.ar/cobelli/LaboratoriosBasicos/excel97.pdf
    [Ref 2]L. Knüsel.  On the accuracy of the statistical distributions in Microsoft Excel 97. Computational Statistics & Data Analysis. Vol. 26 No. 3, pp 375-377. January 1998.
    http://www.sciencedirect.com/science/article/pii/S0167947397817562
    [Ref 3]B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 2000 and Excel XP. 
    Computational Statistics & Data Analysis. Vol.40 No. 4, pp 713-721. October 2002.
    https://www.researchgate.net/publication/222672996_On_the_accuracy_of_statistical_procedures_in_Microsoft_Excel_2000_and_Excel_XP/links/00b4951c314aac4702000000.pdf
    [Ref 4] B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 2003. 
    Computational Statistics & Data Analysis. Vol.49. No. 4, pp 1244-1252. June 2005.
    http://www.pucrs.br/famat/viali/tic_literatura/artigos/planilhas/msexcel.pdf
    [Ref 5] L. Knüsel. On the accuracy of statistical distributions in Microsoft Excel 2003. Computational Statistics & Data Analysis, Vol. 48, No. 3, pp 445-449. March 2005.
    http://www.sciencedirect.com/science/article/pii/S0167947304000337
    [Ref 6]B. McCullough, D.Heiser.  On the Accuracy of Statistical Procedures in Microsoft Excel 2007. 
    Computational Statistics & Data Analysis. Vol.52. No. 10, pp 4570-4578. June 2008.
    http://users.df.uba.ar/mricci/F1ByG2013/excel2007.pdf
    [Ref 7] A. Yalta. The Accuracy of Statistical Distributions in Microsoft<sup>®</sup> Excel 2007. Computational Statistics & Data Anlaysis. Vol. 52 No. 10, pp 4579 – 4586. June 2008.
    http://www.sciencedirect.com/science/article/pii/S0167947308001618
    [Ref 8] B. McCullough.  Microsoft Excel’s ‘Not The Wichmann-Hill’ Random Number Generators. Computational Statistics and Data Analysis. Vol.52. No. 10, pp 4587-4593. June 2008.
    http://www.sciencedirect.com/science/article/pii/S016794730800162X
    [Ref 9] G. Melard.  On the Accuracy of Statistical Procedures in Microsoft Excel 2010. Computational Statistics. Vol.29 No. 5, pp 1095-1128. October 2014.
    http://homepages.ulb.ac.be/~gmelard/rech/gmelard_csda23.pdf
    [Ref 10] L. Knüsel.  On the Accuracy of Statistical Distributions in Microsoft Excel 2010. Department of Statistics - University of Munich, Germany.
    http://www.csdassn.org/software_reports/excel2011.pdf

    I found the same KB article:
    https://support.microsoft.com/en-us/kb/828795
    This was introduced (according to the article) in Excel 2003. Perhaps the references in notes 2 and 3 might help.
    The article describes combining the results of 3 generators, each similar to a Multiply With Carry (MWC) generator, but with zero carry. MWC generators do very well on the Diehard battery of randomness tests (mentioned in your references), and have
    very long periods. But using zero carry makes no sense to me.
    Combining the three generators only helps if the periods of the 3 are relatively prime (despite what the article implies). Then the period of the result will be the product of the 3 periods. But without knowing the theory behind these generators, I have
    no idea what the periods would be. The formulas for MWC generators fail here.
    Richard Mueller - MVP Directory Services

  • After saving a file using Excel 2010 in the My Documents folder, it cannot be found using the open button in Excel 2010

    When certain files are saved using Excel 2010 to the My Documents folder, they cannot be found by using the Open button within Excel 2010.  But the file is always found using My Computer and following the path to My Documents.  What is
    even odder is that if I do a "Save As" within Excel and rename the file to the same name but with a "!" at the beginning of the name, it will then show up in the Excel Open window.  There doesn't seem to be a distinct pattern as to
    when the file can or cannot be displayed by the Excel Open button.
    I am using Windows 7 64bit along with Office 2010 64bit.  Windows has current service packs and updates.  There are perhaps 200 - 400 Excel files in the My documents folder. Some of them are .XLS and some are .XLSX.
    William Fearn

    Hi,
    Do you mean that you can't find the Excel file when you click Excel->Open->My Documents folder? 
    Do you use the other folder path to test?
    Dose the issue occur in other Office suits (Word, Power Point)?
    Do you get some error message, like "Windows cannot find 'FilePath\FileName', Make sure you typed the name correctly, and then try again."?
    Please try the following methods:
    Method1:
    1. Go to the registry. Click START, and in the RUN command line type REGEDIT and hit ENTER or click OK.
    2. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command
    3. Double click on the (Default) instance over to the right. Right now this probably says something like:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    Change this value to:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    4. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command
    Again, double click the (Default) entry to the right and change
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    to
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    Note : Please backup the registry key before you modify.
    Method2:
    Click the File tab, and then click Options.
    Click Advanced, scroll down to the General
    section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the
    General area.
    Thanks
    George Zhao
    Forum Support
     Come back and mark the replies as answers if they help and unmark them if they provide no help.
     If you have any feedback on our support, please click "[email protected]"

  • Using Acrobat X and creating a PDF File from EXCEL 2010, I notice that the Pagination restarts at 1 for each Worksheet included in the PDF.

    I use Acrobat X Standard and created a PDF file from two or more worksheets using EXCEL 2010.
    The resulting PDF file restarts the PAGE # (In header/footer settings of Excel) at 1 for each worksheet.
    However, a colleague of mine who has Acrobat X Pro version, using EXCEL 2010 and same exact file does the same task, he gets a file that starts at page 1 and second worksheet continues the page # from the last page of the First worksheet.
    We both are using the ACROBAT menu (not the print to Adobe printer) to create the file so that we can get Bookmarks included in the resulting file for each worksheet.
    We cannot figure out any option in Acrobat's preferences that controls the pagination on either of these versions of Acrobat.
    So is this just a feature that works one way in Standard version and another way in the Pro version, and the user has no control over it?

    This is so sad. I read your comments and I said, "Huh?" Haha!
    I tried the indexed color option and it did make the final file smaller. Around 600KB. But there's probably another way to make it even smaller like the gazillion-paged pdf file that I mentioned that was only about 300KB.
    And by saying a layout program, does that mean like Adobe InDesign? Does that mean that I should just make my graphics in Photoshop and then import using another program and finish the file there?
    What other layout programs can I use?
    Thank you so much!

  • Problem with solver DLL load and Excel 2010

    Since upgrading from Office 2007 to Office 2010 we've started to experience a problem with the solver addin when our own analytics addins is also loaded. I have found a solution, but I think it may highlight a problem with the latest version of the solver
    addin for Excel 2010.
    Firstly, to describe the problem - the solver addin seems to load normally when Excel 2010 starts up, however when a "Solve" is performed we are seeing a "File not found: Solver32.dll" error at the final "Keep Solver Solution" stage. This only happens our
    own analytics addin is loaded. We've been careful to make sure that our own addin does not change the working directory and also that it has been built against the correct Excel 2010 SDK libraries. We do not see this error with any other versions of Excel
    running on the same PC or any other environment.
    After some searching we found other people were having similar problems and after a bit more probing I found a solution that works - but that I'm not very happy with.
    If I copy the Solver32.dll from:
      C:\Program Files (x86)\Microsoft Office\Office14\Library\SOLVER
        (where it was installed)
    into :
      C:\Windows\SysWOW64 
        (where Windows 7 keeps its 32 bit system DLLs)
    then the problem goes away.
    This seems to indicate that somehow Office 2010 has a problem that causes it to search in the wrong folder for the Solver32.dll when another addin is loaded in between the original Solver32.XLAM at start up and the use of the Solver in the sheet (which eventually
    requires this DLL to be loaded). Oddly, this only happens after a solution is found and "Keep Solver Solution" is selected - and I'm not sure why it's not looking for Solver32.dll any earlier.
    This is not a problem with any earlier versions of Excel and I suspect is a bug in the Office14/LIBRARY/SOLVER implementation. Is there any way to get this followed up?
    Thanks,
    Andy

    I'm facing the same issue. With an Excel VSTO add-in we're building. When the add-in is enabled the assembly solver32.dll can't be found. With our add-in disabled the DLL is resolved as (Sysinternals Process Monitor trace):
    EXCEL.EXE CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Windows\SysWOW64\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Windows\system\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Windows\Solver32.dll
    EXCEL.EXE CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Library\SOLVER\SOLVER32.DLL
    and with our add-in enabled the following locations are tried, but solver32.dll won't be found:
    excel.exe CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Solver32.dll
    excel.exe CreateFile
    C:\ArcGIS\______path to our add-in install location_____________\Solver32.dll
    excel.exe CreateFile
    C:\Windows\SysWOW64\Solver32.dll
    excel.exe CreateFile
    C:\Windows\system\Solver32.dll
    excel.exe CreateFile
    C:\Windows\Solver32.dll
    excel.exe CreateFile
    C:\Program Files\Common Files\Microsoft Shared\Windows Live\Solver32.dll
    excel.exe CreateFile
    C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\Solver32.dll
    excel.exe CreateFile
    C:\Windows\SysWOW64\Solver32.dll
    excel.exe CreateFile
    C:\Windows\Solver32.dll
    excel.exe CreateFile
    C:\Windows\SysWOW64\wbem\Solver32.dll
    etc...

  • EMF images embedded in Excel 2010 documents don't display when the same document is loaded into Excel 2013

    I have a fairly large spreadsheet which creates layout floorplan maps based on a table of 3,000+ room locations and various cross-referenced attribute lookup tables which add flags & colour coding to the individual rooms. The maps also
    include a few graphic elements beyond simple cells and borders, such as EMF images to indicate stairways, etc.
    The sheet works perfectly on my Win7 desktop in Excel 2010:
    However when loaded into Excel 2013 on my Win7 laptop, all of the images show as a red cross with the wording "This image cannot currently be displayed", thus:
    Any ideas, as this looks like a bug in Excel 2013? Thanks.
    Andre

    Hi Andre,
    What happens if you reimport the images from original source?
    Try Running Excel Program firstly, and then open this file within Excel (File->Open).Also if you have Excel 2010 installed , try to open the file using Excel 2010, copy an paste the content to a blank Excel file.
    You can also try to check the option 'Disable hardware graphics acceleration'. File->Options->Advanced ...
    Wind Zhang
    TechNet Community Support

  • Excel 2010 Dialog Boxes Hidden behind Application causing application freezing

    Recently upgraded to Office 2010 (32bit) /Windows 7.  Have hundreds of users that we support and so far most have upgraded.  Noticed with some users though - not all - just a small percentage, when they click SaveAs in Excel 2010, the application
    freezes.  On closer scrutiny we realized what was happening was the SaveAs dialog box was BEHIND the main Excel window.  The only way to restore it is to click on the tab from the Taskbar or minimize all the windows to FIND the SaveAs Dialog box. 
    Understandably this is causing these users stress and inconvenience.  It is very unproductive and a nuisance to say the least.  The only other variable here is that all these users have multiple monitors, usually 2-4.  But for some, this happens
    in their main monitor and/or the monitor that Excel is opened in and which has the focus.  Even more strange is that this does not occur to everyone, just a handful of users so far who have reported the issue.  We have also noted it happens
    with other dialog boxes as well, not just the SaveAs so it seems generic in that sense.
    The other item with this issue is that it's not persistent.  Users have reported it's sporadic and comes and goes.
    Is this a bug? 
    Any feedback greatly appreciated.

    On Wed, 14 Dec 2011 20:51:03 +0000, Nootrino wrote:
    >
    >
    >Recently upgraded to Office 2010 (32bit) /Windows 7.  Have hundreds of users that we support and so far most have upgraded.  Noticed with some users though - not all - just a small percentage, when they click SaveAs in Excel 2010, the application
    freezes.  On closer scrutiny we realized what was happening was the SaveAs dialog box was BEHIND the main Excel window.  The only way to restore it is to click on the tab from the Taskbar or minimize all the windows to FIND the SaveAs Dialog box. 
    Understandably this is causing these users stress and inconvenience.  It is very unproductive and a nuisance to say the least.  The only other variable here is that all these users have multiple monitors, usually 2-4.  But for some, this happens
    in their main monitor and/or the monitor that Excel is opened in and which has the focus.  Even more strange is that this does not occur to everyone, just a handful of users so far who have reported the issue.  We have also noted it happens with
    other
    >dialog boxes as well, not just the SaveAs so it seems generic in that sense.
    >
    >The other item with this issue is that it's not persistent.  Users have reported it's sporadic and comes and goes.
    >
    >Is this a bug? 
    >
    >Any feedback greatly appreciated.
    A search using Google reveals that this may be a problem with W7, and was first reported during beta testing!
    http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/0bbefdc5-7f20-4b9f-8b24-1be76d6b7996
    and for a possible fix, but with some serious caveats:
    http://social.technet.microsoft.com/Forums/en-US/w7itproui/thread/7f4543cf-874d-4a39-bea5-34a824e4c0ce/
    Ron

Maybe you are looking for

  • Why can't i open more than one tab?

    safari won't let me use the plus button the keyboard shortcut or the dropdown menu to open a new tab?

  • MSA 4.0 SP8 : Campaign description not updated in real time while saving?

    with reference to this thread : refresh/update a list , I prefered creating my own instead of upping the older one So the problem deals with data refreshing, or data updating into the objects : When creating a campaign, after saving, the campaign des

  • How to check the report builder version from the rdf file

    Hi, I have a rdf file but I don't the developer using which version of report builder to develop the rdf file. So, does anyone knows how to check the rdf file is developed by which version of report builder? When I try to use the notepad to open the

  • Also.... Credit card number needed?

    Why is the credit card number and expiration needed to create the account on the iTunes store? I've read a lot of the previous questions and answers to topics similar to this, and many of the answers tell the person who asked the question to check th

  • TRACE 분석 관련 질문 - STATSPACK 레벨 확인 등

    TRACE 분석을 해보면 실행계획은 빠져나와서 DBA분에게 LEVEL 6로 요청을 할 예정입니다. 1. 그런데.. 현재 STATSPACK LEVEL 을 직접 확인할 방법이 없나 궁금하네요 2. Row Source Operation 부분을 보면 TABLE ACCESS FULL ....... (cr=7425 pr=0 pw=0 time=3638239 us) 이렇게 되어있는데 CR, PR, PW, TIME, US 의 의미, 단위가 궁금합니다. 글보시는