Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

macro error code

$
0
0

keep getting error code in macro, on line copy invoice to new workbook 

sorry new to this ,any help appreciated

Sub saveinvwithnewname()
Dim Newfn As Variant
copy invoice to a new workbook
Active Worksheet.Copy
Newfn = "c:/users/steves desktop/inv" & Range("b7").Value & ".xlsx"
Activeworbook.saveas Newfn, Fileformat = xmlopenworkbook
Active Workbook.Close
nextinvoice
End Sub


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>