Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default All of my Macros Stopped working! Is there a reference I might have unchecked?


I was working on finalizing one of my macros, when all of my macro
stopped working. They all involve emailing at the end so I figure
that was it.

When I try to run one it comes back and says

"Compile Error: Wrong number of arguments or invalid propert
assignment"

It then comes back and highlites the word "Format" on this line.

olMail.Subject = "Daily Reports from " & Format(Date - 1, "mmm-dd-yy")

If I get rid of the word Format, it selects format on another line.
have the Outlook reference checked as well as the Applicatio
extensibility.

Does anyone have any idea what could have gone wrong? I'm now unabl
to generate any of my reports!

Any help would be great!

~

--
nbaj2
-----------------------------------------------------------------------
nbaj2k's Profile: http://www.excelforum.com/member.php...fo&userid=3648
View this thread: http://www.excelforum.com/showthread.php?threadid=57177

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default All of my Macros Stopped working! Is there a reference I might hav

I know that you indicated that your reference to Outlook is checked, but are
any of the refernces tagged with "Missing:". The error you describe sounds
suspisciously like a missing reference...
--
HTH...

Jim Thomlinson


"nbaj2k" wrote:


I was working on finalizing one of my macros, when all of my macros
stopped working. They all involve emailing at the end so I figured
that was it.

When I try to run one it comes back and says

"Compile Error: Wrong number of arguments or invalid property
assignment"

It then comes back and highlites the word "Format" on this line.

olMail.Subject = "Daily Reports from " & Format(Date - 1, "mmm-dd-yy")

If I get rid of the word Format, it selects format on another line. I
have the Outlook reference checked as well as the Application
extensibility.

Does anyone have any idea what could have gone wrong? I'm now unable
to generate any of my reports!

Any help would be great!

~J


--
nbaj2k
------------------------------------------------------------------------
nbaj2k's Profile: http://www.excelforum.com/member.php...o&userid=36480
View this thread: http://www.excelforum.com/showthread...hreadid=571772


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default All of my Macros Stopped working! Is there a reference I might have unchecked?


I didn't see that. I did get it to work. I opened a new file and
copied all of the code into it and it worked fine. I think it was a
reference issue somehow still, but atleast its back up and working
PHEW!

Thanks,

~J


--
nbaj2k
------------------------------------------------------------------------
nbaj2k's Profile: http://www.excelforum.com/member.php...o&userid=36480
View this thread: http://www.excelforum.com/showthread...hreadid=571772

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default All of my Macros Stopped working! Is there a reference I might hav

I suggest you have created a procedure named format or a variable named
format.

If so, rename it.

--
Regards,
Tom Ogilvy


"nbaj2k" wrote:


I was working on finalizing one of my macros, when all of my macros
stopped working. They all involve emailing at the end so I figured
that was it.

When I try to run one it comes back and says

"Compile Error: Wrong number of arguments or invalid property
assignment"

It then comes back and highlites the word "Format" on this line.

olMail.Subject = "Daily Reports from " & Format(Date - 1, "mmm-dd-yy")

If I get rid of the word Format, it selects format on another line. I
have the Outlook reference checked as well as the Application
extensibility.

Does anyone have any idea what could have gone wrong? I'm now unable
to generate any of my reports!

Any help would be great!

~J


--
nbaj2k
------------------------------------------------------------------------
nbaj2k's Profile: http://www.excelforum.com/member.php...o&userid=36480
View this thread: http://www.excelforum.com/showthread...hreadid=571772


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula stopped working.... Ken Proj mgr Excel Discussion (Misc queries) 5 December 29th 06 03:57 PM
filter stopped working Caroline Lackey Excel Discussion (Misc queries) 5 June 8th 05 09:55 PM
VB Stopped Working [email protected] Excel Worksheet Functions 1 April 28th 05 01:56 PM
excel stopped working Steve Excel Discussion (Misc queries) 0 January 13th 05 04:07 AM
Tab stopped working -- SCOTT-- Excel Programming 0 October 2nd 03 09:14 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"