Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:45:54+00:00 2026-05-29T23:45:54+00:00

This macro worked just fine before we updated to windows 7 and Excel 2010.

  • 0

This macro worked just fine before we updated to windows 7 and Excel 2010.
The macro stops at Activesheet.paste. All this does is open a file, copy the data and paste it to the first document. There is more code at the end to close all the open documents. Thanks, Bob

Application.Goto Reference:="R7C14"
Workbooks.Open Filename:="ALSP.xls"
Workbooks("ALSP.xls").Activate
Range("B7:L61").Select
Application.CutCopyMode = False
Selection.Copy
Windows("R4SP.xls").Activate
ActiveSheet.Paste
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:45:55+00:00Added an answer on May 29, 2026 at 11:45 pm

    Use of SELECT and ACTIVATE is cumbersome, you should be able to set variables references to your worksheet(s) and do copy commands directly with no selecting.

    Dim ws As Worksheet, wbREF As Workbook
    
    Set ws = ActiveSheet
    Set wbREF = Workbooks.Open("ALSP.xls")      'you may want to put the full path here
    
    Range("B7:L61").Copy ws.Range("N7")         'copy to original sheet
    
    wbREF.Close False                           'close the opened workbook, return to ws
    

    To paste values, separate the copy/paste to separate commands:

    Set wbREF = Workbooks.Open("GASP.xls")      'you may want to put the full path here
    
    Range("B7:L61").Copy 
    ws.Range("AL7").PasteSpecial xlPasteValues  'copy to original sheet
    wbREF.Close False
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Excel macros.. Can anyone tell me what this macro does?
I have seen this macro defined before but never really knew its purpose. Can
I need to create a Excel 2010 macro, which changes the SQL Command text
I found this macro to replace multiple strings at once in Microsoft Word 2010.
I have : Macro named "process" that does all the processing work for my
How do you read the second line of this macro? What does (type *)0
This macro should activate tabs in sequence from 1th to 5th and then again.
I have an application that used Macro. In this macro I would like to
For some reason, nothing happens when I run this macro. What might I be
I've been using the macro from this blog entry for attaching the Visual Studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.