How to find Week Number?

prshnthvn

New Member
Joined
Jan 23, 2010
Messages
30
Hello All,

Can anyone let me know how to find the Current week number in excel VBA?

Regards,
prshnthvn
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Code:
MsgBox Application.WorksheetFunction.WeekNum(Date)

lenze
 

prshnthvn

New Member
Joined
Jan 23, 2010
Messages
30
Thanks for the reply lenze,
I am using excel 2003 and Weeknum function is in present in 2003, is there any other function/method in 2003 to get the week number?

Thanks & Regards,
prshnthvn
 

drsarao

Well-known Member
Joined
Sep 9, 2009
Messages
1,146
Office Version
  1. 2007
Platform
  1. Windows
You need to install Analysis Toolpak Addin for WEEKNUM() to be available.
(Tools-->Addins-->Analysis Toolpak)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,109
Messages
5,857,443
Members
431,879
Latest member
KiwDaWabbit

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top