tarih ve saat formatı ile çağırma

Katılım
24 Aralık 2006
Mesajlar
232
Excel Vers. ve Dili
2007 ingilizce
Arkadaşlar elimde bir userform um var. burada bul butonu var. aşağıda kodu mevcut. verilerim tarih formatında (31.12.2006), anca çağırdığımda 12/31/2006 olarak geliyor. ben 31.12.2006 formatında gelmesini ve bu formatta düzeltmesini istiyorum.

Bul makrosu

Private Sub CommandButton3_Click()
sat = ComboBox2.ListIndex + 6
TextBox1 = Cells((sat, "a") tarih formatında çağırmasını istiyorum
TextBox3 = Cells(sat, "c") saat formatında çağırmasını istiyorum
ComboBox4 = Cells(sat, "d")
TextBox5 = Cells(sat, "e")
ComboBox3 = Cells(sat, "f")
TextBox7 = Cells(sat, "g")
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Merhaba.
Aşağıdaki şekilde deneyin.:cool:
Kod:
TextBox1 = Format(Cells(sat, "a"), "dd.mm.yyyy") ' tarih formatında çağırmasını istiyorum
TextBox3 = Format(Cells(sat, "c"), "hh:mm:ss") 'saat formatında çağırmasını istiyorum
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Rica ederim.
İyi çalışmalar.:cool:
 
Üst