Need assistance with simple Excel macro or code

D

dbix

I've got very little VBA experience, but have created and edited some Excel
macros.

I will be exporting data weekly into an Excel sheet, and need a macro to
sort and delete some rows. The sheet will have 7 columns with a header row;
column G will contain a value of 0, 1 or 3. I need to delete all the rows
that are not "1", then will do some other sorts.

the initial export will have up to 400 rows of data.

can someone help with this code?
 
D

Don Guillett

The macro recorder is your friend. Do it manually while recording. Then
clean up the macro.
 
D

dbix

I have recorded a macro; the primary issue is that there will be a variable
number of rows each time I export to this file.

My preliminary macro sorted on column G to get all the 0's, 1's and 3's
together. What I'm missing is the command structure to determine the range
where all the 0's and 3's are to delete.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top