Results 1 to 5 of 5

VBA and Event Study

Threaded View

  1. #1
    Registered User
    Join Date
    07-27-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007,2010, 2013
    Posts
    26

    VBA and Event Study

    1- How to make vba create new work book and save selected in it, on a variable bases, which means for every new change a new workbook?

    2- Can I know whats wrong with the following range not executing on the attached spreadsheet;

    Sub removezeroreturns()
    
    Dim a As Double, a1 As Double, i As Integer, j As Integer, x As Integer
    
    For x = 1 To 3
    
        For i = 1 To 547
    
        j = i + 1
    
    a = Cells(i, 20).Value
    a1 = Cells(i + 1, 20).Value
    
        If a1 = a Then
    
        Rows(j).Select
            Selection.Delete Shift:=xlUp
        
            End If
        
        Next i
     
     Next x
    
    End Sub
    Untitled.png
    Last edited by jeffreybrown; 07-27-2013 at 11:54 AM. Reason: As per Forum Rule #3, please use code tags…Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Event study
    By arjantrinks in forum Excel General
    Replies: 4
    Last Post: 05-22-2014, 02:22 AM
  2. Event study!!
    By roooreee in forum Excel General
    Replies: 3
    Last Post: 03-13-2013, 09:44 AM
  3. M&A Event Study
    By rthomson91 in forum Excel General
    Replies: 0
    Last Post: 03-11-2013, 05:13 PM
  4. Event study
    By arjantrinks in forum Excel General
    Replies: 1
    Last Post: 11-07-2011, 07:18 PM
  5. Event study
    By Niek in forum Excel General
    Replies: 9
    Last Post: 12-26-2010, 05:22 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