No to all
range("a2:a22").copy sheets("destshtname").range("a1")
sheets("destshtname").range("a1").formula="a1*a2"
sheets("destshtname").rows(3).delete
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Eric @ BP-EVV" <(E-Mail Removed)> wrote in message
news:7EE2A731-BDA4-45EF-836D-(E-Mail Removed)...
> 1. Do you have to "select" a worksheet or cell (or range of cells) before
> you
> can copy a cell (or range of cells) from that worksheet ?
> 2. Do you have to "select" a worksheet or cell before you can assign a
> formula to a cell in that worksheet ?
> 3. Do you have to "select" a row in a worksheet before you delete that row
> ?
>
> These may seem like very basic VBA questions....and in reality they
> are....what I am trying to get at is efficiency. I have some code in a
> workbook that pulls data from a SQL table on an AS/400 system and them
> performs several calcuations, sorts, etc. on that data. When I run this
> routine for all 17 locations at one time, it takes nearly 10 minutes to
> run
> to completion. What I'm really after here is suggestions on how to make
> my
> code more efficient....what can I do to speed up this process ?
>
> Thanks !
>