Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SusieQ
 
Posts: n/a
Default Copying from other Workbooks


I have written the following code.

Private Sub CommandButton1_Click()
If CheckBox1.Value = True Then
Range("C12:D17").Copy
Range("C18:D23").PasteSpecial
ElseIf CheckBox2.Value = True Then
Range("C12:D17") = "2"
End If

If CheckBox1.Value = True And CheckBox2.Value = True Then
Range("C12:D17") = "3"
End If



End Sub

How can I change it so the copied data is from another Workbook called
"VCCS" with a Worksheet called "Main Components"?

Thanks


--
SusieQ
------------------------------------------------------------------------
SusieQ's Profile: http://www.excelforum.com/member.php...o&userid=30818
View this thread: http://www.excelforum.com/showthread...hreadid=506314

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
Why does the font change when copying between Excel workbooks Paul Newbery CSC Excel Discussion (Misc queries) 1 September 16th 05 04:30 PM
Copying Formats between workbooks and worksheets geoff_francis_cox Excel Discussion (Misc queries) 3 July 3rd 05 11:22 PM
Copying and Pasting between Workbooks NothingButRomance Excel Worksheet Functions 0 May 13th 05 09:54 PM
Copying and Pasting between Workbooks NothingButRomance Excel Worksheet Functions 0 May 13th 05 07:33 PM
Copying blank excel worksheet into additional excel workbooks Deb Excel Discussion (Misc queries) 10 February 4th 05 12:25 AM


All times are GMT +1. The time now is 01:10 PM.

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"