+ Reply to Thread
Results 1 to 6 of 6

VBA stopped working

Hybrid View

  1. #1
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA stopped working

    Change the value in to row

    Sub copy_paste1()
    Dim i As Long, y As Long, z As Long
    y = Sheets("events exp up to 2 months").Range("T" & Rows.Count).End(3).Row
    For i = 9 To y
    Sheets("P_L events up to 2 months").Range("B" & Rows.Count).End(3)(2).Row = Sheets("events exp up to 2 months").Range("R" & i).Value
    Sheets("P_L events up to 2 months").Range("B" & Rows.Count).End(3)(2).Row = Sheets("events exp up to 2 months").Range("R" & i).Value
    Sheets("P_L events up to 2 months").Range("C" & Rows.Count).End(3)(2).Row = Sheets("events exp up to 2 months").Range("S" & i).Value
    Sheets("P_L events up to 2 months").Range("C" & Rows.Count).End(3)(2).Row = Sheets("events exp up to 2 months").Range("S" & i).Value
    Sheets("P_L events up to 2 months").Range("D" & Rows.Count).End(3)(2).Row = Sheets("events exp up to 2 months").Range("T" & i).Value
    Sheets("P_L events up to 2 months").Range("D" & Rows.Count).End(3)(2).Row = Sheets("events exp up to 2 months").Range("T" & i).Value
    Next i
    z = Sheets("P_L events up to 2 months").Range("B" & Rows.Count).End(3).Row
    Sheets("P_L events up to 2 months").Range(Cells(z, "B"), Cells(z, "D")).Clear
    End Sub
    Last edited by AB33; 06-01-2015 at 02:55 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ocde working in one windows login but stopped working in another.
    By rama1209 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2011, 08:38 AM
  2. Everything stopped working
    By vamedic11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2010, 11:20 PM
  3. VBA stopped working!!
    By maxthebear in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2009, 09:51 PM
  4. It's stopped working
    By mikhailia in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 01-22-2007, 10:12 PM
  5. VB Stopped Working
    By mptkeenan@gmail.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2005, 09:06 AM

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