From: EagerGit on
Hello there

I have made a worksheet where its calculate the wages etc containing 53
payslips.
As you know there are 52 (+special 53 i.e 2~3 days) weeks in a year so when
a user wants to calculate their wages say from WEEK 11 it calculates all
the way down to week 63.

I have named all the payslips as ps1,ps2,ps3.......ps53 and a cell within
which has week no are named as ps1w,ps2w,....ps53w

I need to write a script where when say cell E794 "named as ps35w" is >53
then Hide range ps35

Any help please.

Thanks in advance

From: Don Guillett on
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett(a)gmail.com
"EagerGit" <businesspost(a)gmail.com> wrote in message
news:eBUQ6$qxKHA.1796(a)TK2MSFTNGP02.phx.gbl...
> Hello there
>
> I have made a worksheet where its calculate the wages etc containing 53
> payslips.
> As you know there are 52 (+special 53 i.e 2~3 days) weeks in a year so
> when a user wants to calculate their wages say from WEEK 11 it calculates
> all the way down to week 63.
>
> I have named all the payslips as ps1,ps2,ps3.......ps53 and a cell within
> which has week no are named as ps1w,ps2w,....ps53w
>
> I need to write a script where when say cell E794 "named as ps35w" is >53
> then Hide range ps35
>
> Any help please.
>
> Thanks in advance