Results 1 to 2 of 2

relocate column with VB assigned

Threaded View

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    relocate column with VB assigned

    Hello everyone. Not sure if the title is a clear understanding of what I'm looking for so, here's the detail:

    Design that when #1 or #3 is entered in column AD all data is moved to other tabs.

    The question is.... how can I relocate the VB in column AD to any other column say AE or AF?

    Here's the code and workbook attached if easier.

    Private Sub Worksheet_Change(ByVal Target As Range)
    Application.EnableEvents = False
    If Target.Cells.Count > 1 Then Exit Sub
    If Not Intersect(Target, Columns(30)) Is Nothing Then
        If Target.Value = 1 Then
            Rows(Target.Row).Copy Sheets("faOpenClaims").Range("A" & Rows.Count).End(3)(2)
            Sheets("faOpenClaims").Range("B" & Rows.Count).End(3)(2).Offset(-1, 40) = Date + Time
            Rows(Target.Row).Delete
        ElseIf Target.Value = 3 Then
            Rows(Target.Row).Copy Sheets("faClosedClaims").Range("A" & Rows.Count).End(3)(2)
            Sheets("faClaims2").Range("B" & Rows.Count).End(3)(2).Offset(-1, 40) = Date + Time
            Rows(Target.Row).Delete
        End If
    End If
    Application.EnableEvents = True
    End Sub
    Thank you in advance.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-23-2014, 02:42 AM
  2. Making column titles appear in assigned row
    By nature718 in forum Excel General
    Replies: 7
    Last Post: 11-05-2013, 06:55 AM
  3. [SOLVED] How to extract text from a string and relocate into column in a certain order?
    By Nguyen Tien Long in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-07-2012, 03:35 AM
  4. Macro with assigned column each time?
    By stemcell1 in forum Excel General
    Replies: 3
    Last Post: 08-12-2010, 03:48 PM
  5. [SOLVED] I want to relocate a column, save the figures, and erase formula
    By Gwen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2006, 07:10 PM

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