Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy values of worksheet a to workbook b | Excel Discussion (Misc queries) | |||
Copy worksheet values and formats into another workbook | Excel Programming | |||
automatically copy values of worksheet into new workbook | Excel Programming | |||
Copy worksheet values and formats into another workbook | Excel Programming | |||
excel 97: copy and paste values from one worksheet to another worksheet | Excel Programming |