Macro Looks for Cell Contents & Performs Action

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a Macro in Excel that looks at the text in each cell in
column A:

-if the cell begins with " D" (three spaces and a D) then I need to cut
the cell and paste it up one row and right one column, then delete the row
from which it came

-if the cell does not begin with " D", then move down one cell

The loop should end when a cell contains "***"

This seems pretty easy, but I'm new to VBA...

Thanks,
Adam
 

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

Back
Top