To format a column of Excel to Text

Hi!

I am trying to format a column to text and cannot.
The failure this one in (Excel. Range) worksheet. Cells [1, 3]) .EntireColumn. NumberFormat = "*";

I must use another method but not which

Can they help me?

[233 byte] By [Anpiro] at [2008-1-1]
# 1

Hi,

In VB the following format is valid which I assume also works in C#

Me.Range("A1").EntireColumn.NumberFormat = "@"

DennisWallentin at 2007-9-12 > top of Msdn Tech,Visual Studio Tools for Office,Visual Studio Tools for Office...