how to select a single column when this column cross a merged cell

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

Guest

In Excel, some cells have been merged (e.g. cells(B3:E3)), I clicked the
column C and column C was been selected,and the vba was "
column(C:C).Select".
But when I ran this VBA,column(B,C,D,E)'re all selected.
How can I do?I just want to select Column C and Copy it.
 
Solution is to not select anything, just copy and paste it.

Columns("C:C").Copy
Range("H1").PasteSpecial

sub your desired range for the H1 reference.
 

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