![]() |
Copy Values from WorkSheet back to Another Workbook Replacing Values in Worksheet
I want to copy values from ActiveSheet & Paste them back into my Master Workbook (separate workbook). The Active Sheet above will have the same Sheet Name in the Master Workbook that I want to copy values to. In the Activesheet I have cell "C138" which has the name of the Master Workbook. This was my stab at coding it however it didn't work due the fact that I'm so new to VB. Dim activews As String ' ActiveSheet Name Dim masterws As String ' Master Workbook Name activews = ActiveSheet masterws = Range("C138") ' ActiveSheet.Range("V48:V68,V73:V101,I72:I101,F105: G105,C106:D106,F106:G106,C107:G107,F108:G108,C109: D109,F109:G109,C110:G113,D128:G134,P110:Q110").Cop y Windows(masterws).Activate Sheets(activews).Select Range("V48:V68,V73:V101,I72:I101,F105:G105,C106:D1 06,F106:G106,C107:G107,F108:G108,C109:D109,F109:G1 09,C110:G113,D128:G134,P110:Q110").PasteSpecial xlPasteValues -- bobwilson ------------------------------------------------------------------------ bobwilson's Profile: http://www.excelforum.com/member.php...o&userid=33046 View this thread: http://www.excelforum.com/showthread...hreadid=529382 |
All times are GMT +1. The time now is 11:12 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com