Calculating and copying data into new sheet

  • Thread starter Thread starter scottwilsonx
  • Start date Start date
S

scottwilsonx

Hi, by change (or report) I meant that I might only want to report on a
particular string or date and would like the macro to only look at
those rows where the value was, eg: "New York".

Thanks for your help and time, much appreciated.
 
Scott,

In code, you would change the

If CLng(myCell(1, 2).Value) = CLng(DateValue("12/1/2003")) Then

to

If myCell(1, 5).Value = "New York" Then

Otherwise, for more flexibility, try autofilter. That will just hide the
values you don't want to see, and show those that you do....

HTH,
Bernie
MS Excel MVP
 

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