+ Reply to Thread
Results 1 to 4 of 4

VBA/Excel formula issue

  1. #1
    Forum Contributor spinkung's Avatar
    Join Date
    10-27-2006
    Posts
    199

    VBA/Excel formula issue

    morning all,

    can anyone see whats wrong with this??? I keep getting an appliaction or object defined error.

    Please Login or Register  to view this content.

    cheers,
    Spinkung.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by spinkung
    morning all,

    can anyone see whats wrong with this??? I keep getting an appliaction or object defined error.

    Please Login or Register  to view this content.

    cheers,
    Spinkung.
    Hi,

    it doesn't like single quote

    Cells(i, 2).Formula = "=IF(K" & i & " <>"""",IF(K" & i & " =0, ""Y"", IF(K" & i & " =1, IF(F" & i & " >133000, ""Y"",""N""),""N"")),"""")"

    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Your Y & N's are not inclosed by "

    Try

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor spinkung's Avatar
    Join Date
    10-27-2006
    Posts
    199
    excellent, thankyou.

    Spinkung.

+ 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