How to copy and paste only visible cells from Excel using vbscript

Joined
Apr 6, 2017
Messages
1
Reaction score
0
Hi,

I want to copy only visible cells by using vbs. not vba. In Img 1 Country column is hidden but while pasting the visible cell from sheet1 to sheet2 its showing country column.

Selection.SpecialCells(xlCellTypeVisible).Select

This code is not working in vbs.


Img 1:

upload_2017-4-6_16-43-36.png


Img 2:

upload_2017-4-6_17-35-24.png



Please let me know if there is any alternate way to do that.


Thanks,
Kamal
 

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

Top