Anyone know what's wrong with the following code??
where xlSheet is an Microsoft Excel Worksheet object
setting other Range object to things like "dd mmm yyyy" does work!
running the above code, however, generates error in 'can't set numberformat to range object!!
Code:
xlSheet.Range("C5").NumberFormat = "Text"
setting other Range object to things like "dd mmm yyyy" does work!
running the above code, however, generates error in 'can't set numberformat to range object!!