+ Reply to Thread
Results 1 to 3 of 3

Macro involving multiple sheet and files

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro involving multiple sheet and files

    Hello,

    I am new to this forum, but I have familiarity with Excel, and some familiarity with VBA and macros.

    I'll try to explain my project succinctly.

    (1) I am going to have a lot of .xlsm files that were recently converted from .txt

    (2) Each of these .xlsm files will have a good deal of data in them, some extraneous, some important. It is all actually legal text. I want to cut out all junk and just keep the good stuff.

    (3) I'm doing my best, but I need some help!

    Here's what a typical file looks like:

    1 of 26 DOCUMENTS

    In re Phillips

    Arizona Supreme Court No. SB-10-0036-D

    SUPREME COURT OF ARIZONA

    244 P.3d 549; 2010 Ariz. LEXIS 52; 597 Ariz. Adv. Rep. 19


    December 16, 2010, Decided



    DISPOSITION:*Disciplinary Action from the Disciplinary Commission SUSPENSION AND
    PROBATION ORDERED.

    CASE SUMMARY:


    PROCEDURAL POSTURE: Respondent attorney argued that the Hearing Officer
    erroneously used a vicarious.....

    OVERVIEW: The attorney argued that the Hearing Officer used an improper standard
    of vicarious liability in finding violations of Ariz. R. Prof. Conduct 5.1(a)
    and 5.3(a) .........

    OUTCOME: The recommended length of the attorney's suspension was modified to six
    months, and all other recommendations were accepted.

    JUDGES:

    ***... [**1] John Pelander, Justice. CONCURRING: Rebecca White Berch, Chief
    Justice, Andrew D. Hurwitz, Vice Chief Justice, Jon W. Thompson, Judge.
    WEISBERG, Judge, concurring in part and dissenting in part....




    I want it to look like:
    Herring v. Herring + No. 10-017 + 2011 VT 38; 2011 Vt. LEXIS 48 +May 5, 2011, Filed +Present: Reiber, C.J., Dooley, Johnson, Skoglund and Burgess, JJ.REIBER, C.J., dissenting....
    with + signifying a new cell, but I want them all to be on the same row.

    ****
    Now, I have written a series of macros that made the transformations I wanted. But, it only works on that exact file and group of text, not on another similar but distinct file.

    Here are the macros:

    Please Login or Register  to view this content.
    ****
    So, it seems like the first major problem I am encountering is my second step where I select sheet "VT_State_Cases,_Combined2011-06". The next time I try to run it on a different file, it's not called that obviously, and Excel yells at me with a run-time error 9 subscript out of range

    Any help on that first step?

    Thanks so much and tell me anything more that I could post that would help you help me!

    Sincerely,
    dguenther

    Attached is a sample file I would want to remove the unnecessary text from
    Last edited by dguenther; 06-15-2011 at 08:39 AM. Reason: compliance with rule 3

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Macro involving multiple sheet and files

    Hi and welcome to he board. Unfortunately,


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro involving multiple sheet and files

    Thanks. I edited it to comply.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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