Potential Macro Question

hellokirsten

New Member
Joined
Jan 11, 2018
Messages
17
Hi all! Very happy to find this resource
I will try to be as thorough/concise as I can be

- I have a CSV file that we download for a number of customers. I have created a macro to remove all of the unnecessary information from that CSV file
- Now, there is a field of audit notes that I am trying to divide into these different sections: Idle (notes that contain "idle"), Hardware (notes that contain "battery, heartbeat, transition, and transport"), and Install (notes that contain "initial" or "engine")
- For those three different sections, I am wanting to build something that will take that full file, and divide it into three different sheets

I've tried to record a macro - but the line items range from 20 - 700, so the recording of the macro did not work very well.
Any help would be greatly appreciated!
 
Thanks!! Is this looking for if the field contains that idle, battery, etc. or is it looking for fields that are exactly "idle", etc.
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If you step through the code using F8, whilst looking at the sheet with the data, once it gets to apply the filter are there any visible row?
 
Upvote 0
once it hits: .Range("A1:K1").AutoFilter11, CritAry(Cnt)
I receive an error of Method 'AutoFilter" of object 'Range' failed
 
Upvote 0
Try recording a macro to filter the data & post the resulting code.
 
Upvote 0
Code:
Sub test()
test Macro
Keyboard Shortcut: Option+Cmd+g
    Columns("A:F").Select
    Selection.AutoFilter
End Sub

I'm not sure if that's what you're looking for, sorry for my ignorance!
 
Upvote 0
Could you do that again, but actually filter one of the columns.
Just trying to check if there are any differences between PC & Mac
 
Upvote 0
Code:
Sub Macro6()
Macro6 Macro
Keyboard Shortcut: Option+Cmd+u
    Columns("F:F").Select
    Selection.AutoFilter
End Sub
there we go
 
Upvote 0
Did you apply the filter, eg to filter on the word Idle?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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