Copy and paste only non n#a cells in excel vba -


how copy , paste column data column b without #n/a data.

i have data in column a

a          b  8a61     8a61 #n/a      fs fs       fttt fttt     dsff #n/a dsff 

to copy paste non blank cells used

  set wb = activeworkbook   set ws1 = wb.sheets("sheet7")   ws1.range("a1:a1000").specialcells(xlcelltypeconstants).copy  ws1.range("b1") 

how copy paste column data without #n/a

give go, need putting in sub()

dim integer, j integer j = 1 = 1 cells(rows.count, "a").end(xlup).row if not iserror(cells(i, 1).value)     cells(j, 4) = cells(i, 1)     j = j + 1 end if next 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -