Training
Module
Export data from Dataverse and use Microsoft Excel to edit records - Training
Discover how to export and edit Microsoft Dataverse table data using Excel files, while understanding security concepts.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When you use a Microsoft Visual Basic for Applications (VBA) macro to convert a Comma-Separated Values (CSV) text file into a Microsoft Office Excel workbook (*.xls), the format of dates that are converted into your Excel workbook may not be correct.
For example, in your CSV file, dates may be in the format of:
dd/mm/yyyy
When you run the following macro to convert your CSV text file into Excel,
Sub test()
Workbooks.OpenText Filename:="C:\Test1.csv", DataType:=xlDelimited, _
TextQualifier:=xlTextQualifierNone, FieldInfo:=Array(1, 4)
End Sub
dates may be converted in the following format:
mm/dd/yyyy
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but isn't limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you're familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they won't modify these examples to provide added functionality or construct procedures to meet your specific requirements. To resolve this problem, add the local:=true parameter to your VBA macro as in the following example:
Sub test()
Workbooks.OpenText Filename:="C:\Test1.csv", DataType:=xlDelimited, _
TextQualifier:=xlTextQualifierNone, FieldInfo:=Array(1, 4), Local:=True
End Sub
Training
Module
Export data from Dataverse and use Microsoft Excel to edit records - Training
Discover how to export and edit Microsoft Dataverse table data using Excel files, while understanding security concepts.
Documentation
Application.ScreenUpdating property (Excel)
Office VBA reference topic
Application.DisplayAlerts property (Excel)
Office VBA reference topic
Application.EnableEvents property (Excel)
Office VBA reference topic