+ Reply to Thread
Results 1 to 5 of 5

VBA and Event Study

  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;

    Please Login or Register  to view this content.
    Untitled.png
    Last edited by jeffreybrown; 07-27-2013 at 11:54 AM. Reason: As per Forum Rule #3, please use code tags…Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA and Event Study

    No spreadsheet attached.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA and Event Study

    Hello

    When deleting rows, you should start from the bottom and work up. I have changed your code to do so.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

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

    Re: VBA and Event Study

    Dear Norie,

    Thank you for your interest to help.
    attached is excel file with its vba coding for your attention.
    the problem faced is when arriving at calling the remove zero returns sub as explained before.
    In general, whats required is to sort data and clean it to be pasted on another platform that conducts the event study with conditions prementioned
    in the main sub.
    One important matter please, how can i create new work book based on variables, thats to say, every time the i in my sub changes and arrives to the end to copy the range and paste it in a new workbook (i variable based).

    Hope I was clear but not complicated.
    Thank You
    Attached Files Attached Files

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

    Re: VBA and Event Study

    still facing same problem, see attached

    what about creating work sheets and named based on a variable change.
    Attached Images Attached Images

+ 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. 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