Sep 15, 2003 #1 JDU Technical User Dec 23, 2002 182 US I have this code in an excel macro. I keep getting the error "Expected: expression." What's wrong with the syntax? strDateString = Format(Currentsheet.Cells(1, 1).Value,"mm/dd/yyyy",,) Thanks
I have this code in an excel macro. I keep getting the error "Expected: expression." What's wrong with the syntax? strDateString = Format(Currentsheet.Cells(1, 1).Value,"mm/dd/yyyy",,) Thanks
Sep 15, 2003 #2 JohnAcc Technical User Aug 13, 2003 143 GB Hi There, You need: strDateString = Format(ActiveSheet.Cells(1, _ 1).Value, "mm/dd/yyyy" Rgds John Upvote 0 Downvote
Hi There, You need: strDateString = Format(ActiveSheet.Cells(1, _ 1).Value, "mm/dd/yyyy" Rgds John
Sep 15, 2003 #3 JohnAcc Technical User Aug 13, 2003 143 GB Sorry mis-type ! Ignore the underscore b4 the second 1! Upvote 0 Downvote