Results 1 to 4 of 4

Object does not support this property or method

Threaded View

  1. #1
    Registered User
    Join Date
    12-18-2007
    Posts
    3

    Object does not support this property or method

    Hi Guys,

    I am getting this error "Object doesnot support this property or method"

    What i'm tryin to do is, i have a data dump from SQl...
    I want to compare some values from Sheet2 and then based on the result either look in some other cell in Sheet2 or return the value back to Sheet3.

    The 0/1/1900 is the date that SQL is returning back to the excel file (that field in SQL is null)...

    I want to run this code as a macro.. what am i doing wrong???


    Sub Populate_Cells()
    
    If Range("Sheet2!CW6") <> 0 / 1 / 1900 Then
    Range(N6).Value = Range(Sheet2!CW6)
          ElseIf Range(Sheet2!CS6) <> 0 / 1 / 1900 Then
          Range(N6).Value = Range(Sheet2!CS6)
                ElseIf Range(Sheet2!AK6) <> 0 / 1 / 1900 Then
                Range(N6).Value = Range(Sheet2!AK6)
                    ElseIf Range(Sheet2!AG6) <> 0 / 1 / 1900 Then
                    Range(N6).Value = Range(Sheet2!AG6)
                    Else
                    Range(N6).Value = Range(Sheet2!AG6)
    End If
    End Sub
    Last edited by VBA Noob; 12-18-2007 at 04:32 AM.

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