+ Reply to Thread
Results 1 to 5 of 5

if Then = debug error

  1. #1
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    if Then = debug error

    Why does this give me a debug error?
    Please Login or Register  to view this content.
    I get a debug error saying
    "Compile error: Invalid use of Property"

    and it highlights "Range" in the second line of Range("G16") +1
    Last edited by garretonufer; 09-23-2009 at 05:19 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: if Then = debug error

    What is it supposed to do?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: if Then = debug error

    If the value of B5 = 1 then increase the value in cell G16 by 1

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: if Then = debug error

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-22-2009
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Office 2003 / Office 2007
    Posts
    114

    Re: if Then = debug error

    need to use Range("G16") = Range("G16") + 1 to increment the value in the cell. Excel is putting the space there because there is no equals sign... Range ("G16") instead of Range("G16").

+ 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