loop through column, create worksheets based on data within

wpryan

Well-known Member
Joined
May 26, 2009
Messages
534
Office Version
  1. 365
Platform
  1. Windows
I am working on a logfile analysis tool, which will separate some system settings based on the usage of the device which collects the logfiles. In this tool, I will get the .txt file, import into Excel (which I've already created) and then I want to take the information from one of the columns and create new worksheets, the names of which will be based the data found. Additionally, I want the individual rows associated with those to be cut and pasted to the new worksheets. There will be a limited number of new worksheets, because the device limits the usage to about 8 individual applications. The trick is, that the usage data within the logfile will be random. I will need the vba to loop through the column and find those associated rows. I never got the hang of loops in VBA... Any help is appreciated
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I worked it out - added this code to yours.
HTML:
    Columns("O:O").Select    Selection.TextToColumns Destination:=Range("O1"), DataType:=xlDelimited, _        TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _        Semicolon:=True, Comma:=False, Space:=False, Other:=False, FieldInfo _        :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), _        Array(7, 1), Array(8, 1), Array(9, 1), Array(10, 1), Array(11, 1)), _        TrailingMinusNumbers:=True    wN.UsedRange.Columns.AutoFit    wT.Rows(2).Delete
Thanks again!
 
Upvote 0

Forum statistics

Threads
1,216,128
Messages
6,129,028
Members
449,482
Latest member
al mugheen

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