Sub leftToRight() Application.DefaultSheetDirection = xlLTR ActiveSheet.DisplayRightToLeft = False End Sub
You can also change the setting using Tools-> Options-> International. Please note that you need to check / uncheck the "View current sheet from right to left" box to change the sheets currently open.
Edit: Sorry, I accidentally interpreted your question as VBA.
Here is the C # Solution:
Excel.Application xlApp = new Excel.Application(); xlApp.Visible = true; xlApp.Workbooks.Add(System.Type.Missing); Excel.Worksheet active = (Excel.Worksheet)xlApp.ActiveSheet; xlApp.DefaultSheetDirection = (int)Excel.Constants.xlLTR; //or xlRTL active.DisplayRightToLeft = false;
source share