感謝GBKEE老師的回答,
再請教老師,當表單裡已有別的宣告時,
Private Sub UserForm_Initialize()
Dim tmpArry()
Set sht1 = Sheets("進貨")
Set sht2 = Sheets("銷貨")
R = sht1.Range("AS65536").End(xlUp).Row
該如何把以下這段程式納入上面那一段
Dim xlday
Private Sub UserForm_Initialize()
xlday = Format(Date, "eemm")
Label1 = xlday
End Sub
小弟投降了,因為有重複的兩段 Private Sub UserForm_Initialize() 麻煩老師指點一下!作者: GBKEE 時間: 2012-6-22 06:04