Question : Pound Symbol on Export to Excel, Access


Hi,

I have the below code which exports an Access table to Excel.

I am looking for code which can make column b, f, g & h export with Pound symbols

With oWS
    FormulaRow = .Cells(.Rows.Count, "b").End(-4162).Row + 2 'xlUp
    .Cells.Font.Size = 10
    .Rows(1).Font.Bold = True
    .UsedRange.EntireColumn.AutoFit
    .range("b:h").NumberFormat = "0.00%;[Red]0.00%"
    .range("b:h").NumberFormat = "#,##0.00;[Red]#,##0.00"
    .range("c:e").Style = "Percent"
    End With

Thanks
Seamus

Answer : Pound Symbol on Export to Excel, Access

.range("b:h").NumberFormat = "£#,##0.00;[Red]£#,##0.00"

Gary
Random Solutions  
 
programming4us programming4us