need help in split macro (VBA)

lynn8566

New Member
Joined
Apr 7, 2011
Messages
18
Dear all

I have a huge amount of conference record which use to write down meeting content, like shown below (sorry I have changed the content)

Excel Workbook
ABCDEHI
4TOPTopicMeeting minutesTyperesponsible/contactuntilattachments & links
5*******
62006-09-011th meeting MV C221 / BCFBuilding 11, 3th floor, room 2.A999****
71requirement sections and responsibilitiesDer Stuttgarter Gemeinderat ist drauf und dran, seine massive Sparpolitik der vergangenen zwei Jahre nachhaltig zu lockern. Manfred Kanzleiter, seit vielen Jahren der SPD-Haushaltsexperte, hatte mit einem Antrag im Februar den Stein ins Rollen gebracht.AAADEGruen2006-09-182006-09-18Requirement_sections
82styling dataDoppelhaushalt fr 2012/13 gehe, so kndigte Manfred Kanzleiter an, werde die st?dtische Personalpolitik "ein zentrales Thema sein".Dieses Glasdach l?sst sich auf Knopfdruck hell oder dunkel schalten. Hell ist es fast v?llig durchsichtig und bietet auch bei kalter Witterung ein Open-Air-Erlebnis.VAAllRot2006-09-222006-09-22*
Sheet1



information in column C to E is correlative.

now we want to separate each records and responsible person to a new row.

here is an example sheet


Excel Workbook
ABCDEFG
1TOPTopicMeeting minutesTyperesponsible/contactuntilattachments & links
2*******
32006-09-011th meeting MV C221 / BCFBuilding 11, 3th floor, room 2.A999****
41requirement sections and responsibilitieDer Stuttgarter Gemeinderat ist drauf und dran, seine massive Sparpolitik der vergangenen zwei Jahre nachhaltig zu lockern.AADE2006/9/18Requirement_sections
51requirement sections and responsibilitieManfred Kanzleiter, seit vielen Jahren der SPD-Haushaltsexperte, hatte mit einem Antrag im Februar den Stein ins Rollen gebracht.AGruen2006/9/18*
62styling dataDoppelhaushalt fr 2012/13 gehe, so kndigte Manfred Kanzleiter an, werde die st?dtische Personalpolitik "ein zentrales Thema sein".VAll2006/9/22*
72styling dataDieses Glasdach l?sst sich auf Knopfdruck hell oder dunkel schalten. Hell ist es fast v?llig durchsichtig und bietet auch bei kalter Witterung ein Open-Air-Erlebnis.ARot2006/9/22*
Sheet2


I have try to use split macro to detect alt+enter in each column, but it is not work properly.

can some one help?

thanks a lot.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
please try with this, sorry i have to change the content in column C, but the format is as origin.

in column D type I meaning it is a information and there will no date records in column H corresponding to it.for type A mostly have date, but sometimes date was missing or sometime it is "ongoing", for type V no date records. another problem was that, I, A and V sometime appear crossed, there is no common discipline.

the challenge is if you filled column H with NA or * mark in those place where date was missing, your code will be run perfect. but this excel file will goes to over 4000 rows before split, so it just no possible to input by hands.

anyway i sincerely thank for all work you have done.

Excel Workbook
ABCDEFGHI
1TOPTopicMeeting minutesTyperesponsible/contactTeilnehmerAmpeluntilattachments & links
2*********
32006-09-242nd meetingxxxxx******
41requirement sectionsUS space agency managers said the ship would not now lift off before 8 May.US space agency managers said the ship would not now lift off before 8 May.US space agency managers said the ship would not now lift off before 8 May.US space agency managers said the ship would not now lift off before 8 May.US space agency managers said the ship would not now lift off before 8 May.AVOrtalAll**2006-09-22requirement sections
52smaragd access to styling dataIt should have left Earth on Friday but has been held on the ground because of an electrical failure in a switchbox connected to a hydraulics power unit.The youngest of America's reusable spaceplanes is set to deliver a $2bn (?1.2bn) particle physics experiment to the International Space Station (ISS).AAmodel verifiersGun**2006-09-222006-09-20*
63feed backOn Sunday, Nasa announced the repairs would be lengthy but could not state precisely how long it would take to get the orbiter in a position to make another launch attempt. "We can tell you pretty much that it's not going to be any earlier than the 8th," explained Mike Moses, the chair of the mission management team."That doesn't mean we're going to go launch on the 8th; that just means we know the 8th is our next available opening."So we'll kinda start looking at that but we're not ready to set the schedules today. There's still a whole lot of short-term work that has to be done."1. Friday's glitch started with an errant heater in one of the three auxiliary power units (APUs) in Endeavour - all of which must be in perfect working order for a launch to be allowed to proceed.The APUs provide hydraulic power to steer the vehicle during ascent and entry. The heater's job is to prevent hydrazine fuel in a feed pipe to a unit from freezing.IAAAAARealSomalSomalSomalSomalReal**2006-09-292006-09-292006-09-292006-09-292006-09-22*
74statusThe families of the crew were also told there was nothing to keep them at Kennedy.ACiop**2006-09-22*
85miscellaneous1. The families of the crew were also told there was nothing to keep them at Kennedy.2. The extra delay means Endeavour's six astronauts have returned to their base at Nasa's Johnson Space Center in Houston, Texas.AAWiggroWiggro**2006-09-252006-09-29*
9TOPTopicMeeting minutesTyperesponsible/contactTeilnehmerAmpeluntilattachments & links
10*********
112006-09-253rd meetingxxxx******
121Smaragd access to styling data? Managers need then to stage Endeavour's ascent so that the shuttle's movements in orbit do not conflict with a Russian Soyuz vehicle that is supposed to be leaving the space station later this month.The complex task of switchbox replacement and testing means Endeavour's next opportunity to launch has to wait until after the Atlas has had a chance to get into space.IARealmodel verifiers**2006-10-06MCG_Scan_Data_Smaragd
132Storage of styling data? Complicating matters is the launch of an Atlas rocket on the nearby Cape Canaveral Air Force Station scheduled for 6 May."There's a heck of a lot of work ahead of the team," said launch director Mike Leinbach. "I'm extremely proud of the work we've already done over the weekend to understand this problem, and now that we've essentially pinpointed the problem to inside of the load control assembly we'll get on with the business of taking that guy out and replacing it with the new one." ? FeedbackNasa engineers were not sure at first whether the heater's reluctance to operate was a simple thermostat failure or a more deep-seated issue in an electrical switchbox.IIAARealRealRealRavens**2006-10-062006-10-06*
143Update of styling modelsComplicating matters is the launch of an Atlas rocket on the nearby Cape Canaveral Air Force Station scheduled for 6 May.IHeld****
154Feed backThe extra delay means Endeavour's six astronauts have returned to their base at Nasa's Johnson Space Center in Houston, Texas.The families of the crew were also told there was nothing to keep them at Kennedy.This included the shuttle commander Mark Kelly's wife - Arizona congresswoman Gabrielle Giffords. She is recovering from a gunshot wound to the head, but was allowed by her doctors to travel to Florida's Space Coast to see her husband's lift-off. She has now returned to the hospital, also in Texas, where she is undergoing rehabilitation.Friday's glitch started with an errant heater in one of the three auxiliary power units (APUs) in Endeavour - all of which must be in perfect working order for a launch to be allowed to proceed.IAIAWarterTrummStri?kHeld, Reeve**2006-10-062006-10-06*
Sheet1
 
Last edited:
Upvote 0
Hi
there is some progress, i have changed following code´

Code:
                Select Case c
                    Case 3 To 8
                        On Error Resume Next
                        s = ""
                        s = Split(ka(i, c), Chr(10))(m)

to

Code:
                Select Case c
                    Case 3 To 8
                        On Error Resume Next
                        s = " "
                        s = Split(ka(i, c), Chr(10))(m)

i have added a space in the "" mark, then it split nearly correct. but still it cannot identify the sequence of date in column H, but it can identify blank.

i think this will be difficult to correct with code right? but the date is very important evidence in the following analytic work, so is there any solution for this?
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top