Results 1 to 8 of 8

Converting simple multiplication formula in VBA code

Threaded View

  1. #1
    Registered User
    Join Date
    11-17-2010
    Location
    India
    MS-Off Ver
    Microsoft Office Excel 2003
    Posts
    83

    Converting simple multiplication formula in VBA code

    Friends,

    I need a macro coding where i need to multiply the values entered in col G and Col M should get multiplied and reflect the result in column O.

    I tried to do this in VBA coding but unfortunately i could not make it...Here is my code.

    Can anyone help me to modify it.

    Private Sub Worksheet_Change(ByVal Target As Range)
    Set isect = Intersect(Target, Range("G:M"))
        If Not isect Is Nothing Then
            If Target <> "" Then
               Range("O" & Target.Row) = Target * Target
                Else
               Range("O" & Target.Row) = ""
              End If
        End If
    End Sub
    Last edited by Saky; 12-07-2010 at 07:56 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