Dear Friends,
I am having problem with two occasion in my code. can any one please help me.
1) trying to find column number in the below, mmonth is name of combobox where Date is selected in the format MMM-YYYY, it is not bring any column number. when I change 'Me.mmonth.value' to any normal text it is working fine
2) I am trying to add one month to combobox 'mmonth2' as below. it is not adding the month.
Thanks in advance.
Ajaar
I am having problem with two occasion in my code. can any one please help me.
1) trying to find column number in the below, mmonth is name of combobox where Date is selected in the format MMM-YYYY, it is not bring any column number. when I change 'Me.mmonth.value' to any normal text it is working fine
Code:
colNum = Application.WorksheetFunction.Match(Me.mmonth.Value, ActiveWorkbook.Sheets("Payment").Range("1:1"), 0)
2) I am trying to add one month to combobox 'mmonth2' as below. it is not adding the month.
Code:
mmonth2.Value = DateAdd("m", 2, mmonth.Value)
Thanks in advance.
Ajaar