Results 1 to 3 of 3

Simple Help Combining Two VBA Codes

Threaded View

phishhead1183 Simple Help Combining Two VBA... 08-06-2014, 02:37 PM
LJMetzger Re: Simple Help Combining Two... 08-06-2014, 03:02 PM
phishhead1183 Re: Simple Help Combining Two... 08-06-2014, 03:18 PM
  1. #1
    Registered User
    Join Date
    08-06-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2011
    Posts
    2

    Exclamation Simple Help Combining Two VBA Codes

    I'm having difficulty integrating two nearly-identical codes into one with Visual Basic Editor. Here is the coding that is leading me to trouble.

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Row = 51 And Target.Column = 4 _
    Then
    Range("H47").GoalSeek Goal:=Range("D51").Value, _
    ChangingCell:=Range("D37")
    End If
    If Target.Row = 52 And Target.Column = 4 _
    Then
    Range("H50").GoalSeek Goal:=Range("D5").Value, _
    ChangingCell:=Range("D42")
    End If
    End Sub
    Any guidance is much appreciated!
    Last edited by Paul; 08-06-2014 at 02:41 PM. Reason: Added CODE tags for new user. Please do so yourself in the future.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. combining two vba codes into one
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 01:52 AM
  2. Combining vba codes makes the previous codes broken !
    By MDPLUS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2013, 10:00 AM
  3. [SOLVED] Combining 2 codes?
    By bjcowen9000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2013, 02:48 PM
  4. combining codes
    By tweety127 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2008, 06:48 PM
  5. [SOLVED] combining 2 codes
    By steve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2006, 01:15 PM

Tags for this Thread

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