A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Compile error: Object required



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 13th 09, 06:36 PM posted to microsoft.public.outlook.program_vba
brookh
external usenet poster
 
Posts: 2
Default Compile error: Object required

I'm trying to write a macro for Outlook 2007, and getting nonsensical compile
errors. For example: The following script results in "Compile error: Object
required"

Sub TestScript()
Dim x As Integer
Set x = 2
End Sub

Am I doing something wrong or is my Outlook VBA just broken?
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error hpoincare Outlook - Using Forms 1 September 9th 08 09:02 PM
Compile error? Cam Outlook and VBA 5 April 23rd 08 02:43 PM
Outlook.MAPIFolder: for each compile error spareway Add-ins for Outlook 1 January 29th 07 02:05 PM
Error: Object required "dbe" Line No 25 Lesley Outlook - Using Forms 8 December 7th 06 12:45 AM
Script error: Object required [email protected] Outlook - Using Forms 1 March 17th 06 09:44 PM


All times are GMT +1. The time now is 05:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.