Consulting

Results 1 to 4 of 4

Thread: VBA Error help please

  1. #1
    VBAX Regular
    Joined
    Jul 2010
    Posts
    6
    Location

    VBA Error help please

    Hi,

    I keep getting this error when I try to run a macro in Excel 2003 on Windows XP... Can you help? I've uploaded a picture you can find it here - http://i29.tinypic.com/1zyxxjm.png

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Maybe look at Tools>References in the VBIDE and see i any item has MISSING in the text, if so, uncheck it
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jul 2010
    Posts
    66
    Location
    One... I don't see where currentcell as dim'd... was it dim'd as a range?... then why use the 'set' command... just use:

    [VBA]
    dim CurrentCell as Range

    CurrentCell = Sheets("Data").range("s2")
    [/VBA]

    GComyn

  4. #4
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    Quote Originally Posted by gcomyn
    then why use the 'set' command...
    Because you have to use Set with object variables.

Posting Permissions

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