Using Weekday function with no add-ins

G

Guest

Hiya,

I'm creating an excel model for use by a team of staff in my office.

I've included the weekday function for one part of the model to calculate
days where we shift to/from daylight savings.

The team is huge, not very excel literate, and shift worker types. Hence I
don't want to go round installing the analysis toolpack add-in for them all.

Is there anyway I can get the function to work without using the toolpack?
Perhaps by writing a VB function myself? - if so, can you help me with the
code please?

Thanks,

Basil
 
P

Pete_UK

WEEKDAY( ) is a standard function - no need to install the ATP add-in.

Hope this helps.

Pete
 
R

Ron de Bruin

hi Basil

Weekday is a normal function, not a ATP function
No need to install the add-in
 
G

Guest

BUT...
If, at some point, you needed to have the Analysis Toolbar active in a
workbook that you are distributing (for example, to use the EOMonth( )
formula), to activate it, put this in the 'ThisWorkbook' Open procedure of
your workbook...

Private Sub Workbook_Open()
On Error Resume Next
AddIns("Analysis ToolPak").Installed = True
AddIns("Analysis ToolPak - VBA").Installed = True
End Sub

--
HTH,
Gary Brown
(e-mail address removed)
If this post was helpful to you, please select ''YES'' at the bottom of the
post.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top