excel vba - Copying multiple cells at once -


could tell me what's wrong syntax?

sheets("sheet1").range("d" & i, "b" & i, "i" & i, "e" & i, "n" & i, "p" & i).copy 

this 1 correct:

sheets("sheet1").range("d" & & ",b" & & ",i" & & ",e" & & ",n" & & ",p" & i).copy 

comma , should inserted as string. i.e. you're trying use (which wrong):

sheets("sheet1").range("d1","b1","i1","e1","n1","p1").copy 

but should use:

sheets("sheet1").range("d1,b1,i1,e1,n1,p1").copy 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -