Try for yourself, I'm stuck.

paul.clarke

Registered User.
Local time
Today, 04:52
Joined
Mar 13, 2009
Messages
51
1. create an excel sheet with just the weeknum formula in it, then save it.
2. create a form in access and add a command button to open the above report.

3. Does the weeknum display when the excel sheet is opened from your form button ?, or is it like mine and just displays #name? in the cell.?

This is the problem im having, i have tried to explain it as simply as i can.
any advice on how to get this working?
 
How are you opening the Excel file? I can't see how you would get a specific file from the button wizard.
 
i have added some code that i copied from somewhere to say open the file from a specific location and folder. but even if i use "run excel" on a button and open the spreadsheet manually it still does not recognise weeknum, however when open excel manually from desktop, it works fine.

code i added is :-
oApp.Workbooks.Open ("\location\filename.xls")
 
Still works okay for me. What version of Office are you using and what service packs do you have?
 
works for you? hey no fair,.
its office 2003 and service pack 3 is installed
 
if its excel though, surely yours wouldnt work regardless of service pack, ill dig arnd for sp3 hotfixes, thanks for advice
 
I have installed this hotfix from the link you gave, however it still has not resolved this issue. Have you any other ideas?
to reitterate, If i open excel from my desktop the weeknum functions works perfect, however when opening excel from a command button, weeknum is not recognised.
 

Users who are viewing this thread

Back
Top Bottom