+ Reply to Thread
Results 1 to 2 of 2

Error 1004

  1. #1
    Registered User
    Join Date
    10-29-2004
    Posts
    8

    Error 1004

    Hi, I have the following code:

    Range("B1").activate

    and when I run my program I get

    ERROR 1004, error in activate method of the range class.

    what is the problem?! Itīs just a simple activation of a range...

    Thanks for your help.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon ehntd

    Don't use Activate, use Select. Don't take it personally, VBA is the fussiest thing when it comes to correct syntax. Anyone who regularly programs with VBA is subject to fits of weeping and nashing of teeth when what seems like the simplest command in the world gets rejected with a confounding, meaningless error.

    Keep trying. Good luck.

    HTH

    DominicB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1