Gibts da keinen Cast so wie tostring(ThisApplication.Selection as Excel.Range)
> -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:csharp.net- > [EMAIL PROTECTED] Im Auftrag von Mansur Esmann [OM] > Gesendet: Mittwoch, 08. Februar 2006 16:41 > An: [email protected] > Betreff: [CSharp.net] Unter c# auf Excel-Range zugreifen > > Hi, > > Excel.Range result = ThisApplication.Selection as Excel.Range; > > System.Array ar = result as System.Array; > > Leider erhalte ich für Zellen mit Datum kein "wirkliches" Datum zurück ... > Statdessen bekomme ich eine Zahl genauso, wie wenn ich in Excel das Datum > zur Zahl wandle ... > > Hat mir jemand einen Vorschlag wie ich: > A.) erkennen kann, daß es sich um ein Datum handelt und > B.) wie ich ggf. die Zahl (Bspw. 01.01.2004 = 37987) wieder zu einem Datum > bekomme? > > Gruß Mansur > > _______________________________________________ > CSharp.net Mailingliste, Postings senden an: > [email protected] > An-/Abmeldung und Suchfunktion unter: > http://www.glengamoi.com/mailman/listinfo/csharp.net _______________________________________________ CSharp.net Mailingliste, Postings senden an: [email protected] An-/Abmeldung und Suchfunktion unter: http://www.glengamoi.com/mailman/listinfo/csharp.net
