Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy values of worksheet a to workbook b Nev Excel Discussion (Misc queries) 5 April 8th 09 09:35 PM
Copy worksheet values and formats into another workbook bishwino Excel Programming 0 November 28th 05 05:19 PM
automatically copy values of worksheet into new workbook Jane Excel Programming 4 July 7th 05 03:10 PM
Copy worksheet values and formats into another workbook Rick_Wendt Excel Programming 1 October 20th 04 08:14 PM
excel 97: copy and paste values from one worksheet to another worksheet Kathy[_5_] Excel Programming 0 September 21st 03 03:03 PM


All times are GMT +1. The time now is 04:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"