edate

coquinn

New Member
Joined
Oct 23, 2005
Messages
24
does anyone know how to use the edtae function in vba using worksheet function command?...Many thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Enable the add-in or reference (assuming english version) ATPVBAEN.XLA. Also, no need for the Evaluate method actually.
 
Upvote 0
Try this, it is not the "EDate" but it does the same thing:

Sub myMonths()
Dim myNMos%, myMsg$
Dim startDate As Date


startDate = InputBox("Enter a starting date [mm/dd/ccyy]:")
myNMos = InputBox("Enter number of months to add," & vbLf & "positive for future date and negative for past date:")
myMsg = "New date: " & DateAdd("m", myNMos, startDate)
MsgBox myMsg
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,534
Messages
6,055,960
Members
444,839
Latest member
laurajames

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top