im trying dateadd function string
so far got
dim newdate  newdate = dateadd("m", 1, date) msgbox(newdate.tostring("d"))   which gets error object required
im trying create photoshop script gets date , adds on 1 month writes active text layer
'get , change expiry date  docref.activelayer = docref.layers(3) set textitemref = docref.activelayer.textitem  dim newdate  newdate = dateadd("m", 1, date) textitemref.contents = newdate.tostring("d")   any great
a string in vba not object has no tostring() method, that's vb.net.
newdate = dateadd("m", 1, date) msgbox newdate   or
msgbox format$(newdate, "dd/mm/yyyy")      
Comments
Post a Comment