Ask your own question, for FREE!
Computer Science 72 Online
OpenStudy (s3a):

Microsoft Excel 2010 VBA Macro Programming Problem I've done quite a bit of research and I've come up with the following macro which doesn't run successfully. Just to say, WorkBook1.xlsm and WorkBook2.xlsm are in the same folder and they each have only one work sheet.:

OpenStudy (s3a):

Sub MySelfMadeMacro() Application.ScreenUpdating = False Workbooks("WorkBook1.xlsm").Activate Worksheets(1).Select Range("B2:C3").Select CurrentRegion.Copy Workbooks("WorkBook2.xlsm").Activate Worksheets(1).Select Range("E1:F2").Select ActiveSheet.Paste Application.ScreenUpdating = True End Sub

OpenStudy (s3a):

The Microsoft Visual Basic compiler says: Run-time error '424': Object required and suggests that the CurrentRegion.Copy syntax is what's at fault. I'm thinking that I need to make an object for a clipboard or something so that I can run that operation but I'm confused as to how I should proceed from here. Any help in finding the missing syntax would be greatly appreciated!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!