Consulting

Results 1 to 5 of 5

Thread: camembert

  1. #1

    camembert

    Hello,

    I am creating a macro concerning a camembert. When I go to "select data", I enter:

    ='20100331'!$A$1:$A$11;'20100331'!$J$1:$J$11

    Every day I have to update my camembert for the new day. So today, I would have to replace 20100331 two times by 20100401.

    Does somebody know how to work out a macro which does this automatically.

    Thank in advance

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Maybe

    ="'"&TEXT(TODAY(),"yyyymmdd"&'!$A$1:$A$11;'"&TEXT(TODAY()-1,"yyyymmdd")&"'!$J$1:$J$11
    "

    What is a camembert (apart from being a cheese)?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    camembert = pie

    I am sorry, I am using a french version of excel

  4. #4
    I tried your code it doesn't seem to work. Can you check your formula for mistakes? Or is there another way to achieve this ?

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    That got screwed up a bit. Try thius

    ="'"&TEXT(TODAY(),"yyyymmdd")&"'!$A$1:$A$11;'"&TEXT(TODAY()-1,"yyyymmdd")&"'!$J$1:$J$11"
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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