excel - Copying cell range to a different workbook -


i've got below code copy range of different cells next available row in workbook. issue it's pasting formula's not values.

sub saveinlife()     dim wb workbook, nr long     set wb = workbooks.open("c:\users\caseys\downloads\operations score card.xlsx")     nr = sheets("in life").range("a" & rows.count).end(xlup).row + 1      thisworkbook.sheets("report")     .range("ab85").copy destination:=wb.sheets("in life").range("a" & nr)     end      wb.close savechanges:=true end sub 

figured out

replaced

.range("ab85").copy destination:=wb.sheets("in life").range("a" & nr)  

with

wb.sheets("in life").range("a" & nr).value = .range("ab85").value 

seems need :)


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -