office-2013

How to script Excel 2013's Spreadsheet Compare?

99封情书 提交于 2019-11-27 02:00:37
问题 I'm trying to incorporate the fancy new Spreadsheet Compare function from Excel 2013's Inquire Add-in, into a VBA script. The plan is to have a macro to automate comparison between two spreadsheets with predefined names, and to export all the differences as a new spreadsheet. Without success, to date. Here's what I've tried so far: Normally, to learn how to automate some Excel functionality, I use Record Macro. If that fails, I look down the list of addable references, to see if I'm missing

How to correctly display .csv files within Excel 2013?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 21:15:21
It seems Excel 2013 doesn't read CSV files correctly (Excel 2010 does). Every time I open .csv files, all my data are displayed in the first column. I know I can go to DATA , Convert , and then choose commas , but this set up is not saved, and I am fed up doing this every time I open this kind of file. How can I set Excel 2013, once and for all, to display CSV files (comma separated) prettily? Open the CSV file with a decent text editor like Notepad++ and add the following text in the first line: sep=, Now open it with excel again. This will set the separator as a comma, or you can change it

How to export a CSV to Excel using Powershell

青春壹個敷衍的年華 提交于 2019-11-26 20:28:01
I'm trying to export a complete CSV to Excel by using Powershell. I stuck at a point where static column names are used. But this doesn't work if my CSV has generic unknown header names. Steps to reproduce Open your PowerShell ISE and copy & paste the following standalone code. Run it with F5 "C:\Windows\system32\WindowsPowerShell\v1.0\powershell_ise.exe" Get-Process | Export-Csv -Path $env:temp\process.csv -NoTypeInformation $processes = Import-Csv -Path $env:temp\process.csv $Excel = New-Object -ComObject excel.application $workbook = $Excel.workbooks.add() $i = 1 foreach($process in

How to export a CSV to Excel using Powershell

天大地大妈咪最大 提交于 2019-11-26 07:37:43
问题 I\'m trying to export a complete CSV to Excel by using Powershell. I stuck at a point where static column names are used. But this doesn\'t work if my CSV has generic unknown header names. Steps to reproduce Open your PowerShell ISE and copy & paste the following standalone code. Run it with F5 \"C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell_ise.exe\" Get-Process | Export-Csv -Path $env:temp\\process.csv -NoTypeInformation $processes = Import-Csv -Path $env:temp\\process.csv

How to correctly display .csv files within Excel 2013?

爱⌒轻易说出口 提交于 2019-11-26 06:55:58
问题 It seems Excel 2013 doesn\'t read CSV files correctly (Excel 2010 does). Every time I open .csv files, all my data are displayed in the first column. I know I can go to DATA , Convert , and then choose commas , but this set up is not saved, and I am fed up doing this every time I open this kind of file. How can I set Excel 2013, once and for all, to display CSV files (comma separated) prettily? 回答1: Open the CSV file with a decent text editor like Notepad++ and add the following text in the

Can I still use Microsoft.Office.Interop assemblies with office 2013?

旧城冷巷雨未停 提交于 2019-11-25 23:54:54
问题 I had to import an older project (in .Net 2) into Visual Studio 2013, it makes use of the Microsoft Primary Interop Assemblies. Visual Studio said that I need to add references to the project. Now I went and did some reading and apparently Microsoft has only released the PIA for office 2010? (I have Office 2013) Now what I would like to know is. Can I get it to work with office 2013 and be backward compatible? And if so is this a good route to go for the future? Is it going to be compatible?