Consulting

Results 1 to 1 of 1

Thread: change from vba code (const as date) to (cell.value in worksheet)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    change from vba code (const as date) to (cell.value in worksheet)

    Hello,
    I have one new issue.
    When I'm trying to change to cell value I've got Global Error.


    Const FirstDay As Date = "2017-12-31"
    to something like this:

    dim FirstDay as string
    FirstDay = Sheets("DATA").Range("J3").NumberFormat = "yyyy-mm-dd"
    Thanks in advanced


    ps
    I change FirstDay as date and it's working.
    Last edited by mokie; 04-04-2018 at 11:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •