Results 1 to 8 of 8

Problems with Range

Threaded View

  1. #1
    Registered User
    Join Date
    01-26-2009
    Location
    Hanko, Finland
    MS-Off Ver
    Excel 2003
    Posts
    13

    Problems with Range

    Private Sub Worksheet_Change(ByVal Target As Range)
       If Target.Column = 1 And Target.Value <> "" Then
           ThisWorkbook.Sheets("gg").Cells(Target.Row, 2).Formula = yadda yadda yadda
       End If
    End Sub
    There's the sub. Basicly if cell that got changed is in A column and value in the cell isn't empty I want to set formula to B column of that cells row(and use cells value in formula). However it halts in the If clause claiming type mismatches.

    Where it is missing? My guess is that value but didn't range objects have value?

    (btw how would this operate if more than one cell gets changed. Say copy&paste order?)
    Last edited by tneva; 02-02-2009 at 07:31 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