Macro Assistance

Solved/Closed
DCecil07 Posts 30 Registration date Monday 15 March 2010 Status Member Last seen 15 September 2010 - 21 Apr 2010 à 10:01
DCecil07 Posts 30 Registration date Monday 15 March 2010 Status Member Last seen 15 September 2010 - 7 May 2010 à 09:52
I have a spreadsheet that has data ranging from C3:C263.

Workbook is 'GSU CAS Transactional Upload', Sheet is called 'Alliance Upload'

I need to have the data from C3:C263 to copy onto another workbook:

Workbook Location V:\NEPD Quality\Alliance Contingency, Workbook: CAS GROUP SETUP AUDIT.xlt, Sheet 'CAS Group Setup Audit', Range to copy to is D8:D268

I need that to run off a click of a button on the original workbook on 'Alliance Upload' sheet.

Let me know if that is confusing.

Thanks.

3 responses

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
21 Apr 2010 à 10:30
try this. It is assuming both books are open

Sub copyData()

Workbooks("CAS GROUP SETUP AUDIT.xlt").Sheets("CAS Group Setup Audit").Range("D8:D268") = Workbooks("GSU CAS Transactional Upload.xls").Sheets("Alliance Upload").Range("C3:C263").Value

End Sub
DCecil07 Posts 30 Registration date Monday 15 March 2010 Status Member Last seen 15 September 2010
7 May 2010 à 09:52
Thanks for your help!
DCecil07 Posts 30 Registration date Monday 15 March 2010 Status Member Last seen 15 September 2010
21 Apr 2010 à 11:11
I created the button and added your code, I rec'd a Runtime '9' error.
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
21 Apr 2010 à 11:16
Hard to tell without seeing the book. Could you please upload sample files on some shared site like https://authentification.site and post back here the link to allow better understanding of how it is now and how you foresee.