+ Reply to Thread
Results 1 to 4 of 4

Macro to create separate sheets

  1. #1
    Registered User
    Join Date
    09-15-2010
    Location
    Cheyenne Wyoming
    MS-Off Ver
    Excel 2007
    Posts
    4

    Macro to create separate sheets

    Hello, I am new to using macros and rearranging text. I have a 18k line RAW data report that contains dashes that seperate each record as seen below:
    ------------------------------------------------------------------------------------------------------------------------
    FIRST LAST L 00012312312 06/66/66 S 23 PPPPZ(777)777-7777 77/77/77
    500 E 895TH ST LARAMIE WY 82700 04 01 636-6610
    125251235

    NOTE #1.. NOTE #2..
    NOTE #3.. NOTE #4..

    SERVICE POSTING ST DR T TC CPT DESCRIPTION INS FILED AMOUNTS BALANCE

    1 05/28/10 06/09/10 04 22 E 01 11111 AB ABCDEFHIJK BLAB EXT CONTRAST 222.33 246.92
    2 05/28/10 06/09/10 04 23 E 01 111111 LT SHOULDER COMP MIN 2-V 42.67 289.59
    3 08/31/10 08/31/10 04 22 E 01 263 AB ABCDEFHIJK BLAB EXT DBA 289.59 0.00

    OP DATE TP COMMENT
    CM 07/15/10 O AB ABCDEFHIJK BLAB EXT AB ABCDEFHIJK BLAB EXT T-19
    CM 07/15/10 O AB ABCDEFHIJK BLAB EXT AB ABCDEFHIJK BLAB EXT CM 07/15/10 O CALL
    CM 07/15/10 O AB ABCDEFHIJK BLAB EXT AB ABCDEFHIJK BLAB EXT CM 07/15/10 O IS DIFF
    S5 07/19/10 O AB ABCDEFHIJK BLAB EXT
    ------------------------------------------------------------------------------------------------------------------------
    I would like to use a script and remove the lines "note #1 and note #3" then copy all data between the dashes to seperate sheets and remove the dashes. Does anybody have any thoughts of how I may accomplish this? I appreciate any ideas friends.

    Shane Cauley Wyoming

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro to create separate sheets

    Please Login or Register  to view this content.



  3. #3
    Registered User
    Join Date
    09-15-2010
    Location
    Cheyenne Wyoming
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro to create separate sheets

    Quote Originally Posted by snb View Post
    Please Login or Register  to view this content.
    Run time 13 type mismatch.

    Cells(1,1).resize is highlighted on debug

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro to create separate sheets

    Please post an example of the raw.txt

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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