View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default How to reference variable worksheets and variable row

One way:

Worksheets(X).Rows(W).Copy Destination:=Worksheets(Z).Rows(Y)




In article , glenn
wrote:



Hi all


How do i write "Get row W from worksheet X and copy row W to row Y
(inserting row W in the position where row Y is) on worksheet Z" in VBA?

WXYZ would be variables in my script.

Thanks!