Macro Assistance
Solved/Closed
DCecil07
Posts
30
Registration date
Monday March 15, 2010
Status
Member
Last seen
September 15, 2010
-
Apr 21, 2010 at 10:01 AM
DCecil07 Posts 30 Registration date Monday March 15, 2010 Status Member Last seen September 15, 2010 - May 7, 2010 at 09:52 AM
DCecil07 Posts 30 Registration date Monday March 15, 2010 Status Member Last seen September 15, 2010 - May 7, 2010 at 09:52 AM
Related:
- Macro Assistance
- Spell number in excel without macro - Guide
- Macro excel download - Download - Spreadsheets
- Excel macro to create new sheet based on value in cells - Guide
- Run macro on opening workbook - Guide
- Excel vba assign macro to button programmatically - Guide
3 responses
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Apr 21, 2010 at 10:30 AM
Apr 21, 2010 at 10:30 AM
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
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 March 15, 2010
Status
Member
Last seen
September 15, 2010
Apr 21, 2010 at 11:11 AM
Apr 21, 2010 at 11:11 AM
I created the button and added your code, I rec'd a Runtime '9' error.
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Apr 21, 2010 at 11:16 AM
Apr 21, 2010 at 11:16 AM
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.
May 7, 2010 at 09:52 AM