in Education by
I have a VBA macro which copies a summary tab from one workbook to another. It works fine in 2010, but not for our associates who've upgraded from 2010 to 2016. The macro doesn't error out - it just doesn't do anything at all. Does anyone have any suggestions on what might be different with 2016? Thank you! Sub Analyst_Summary_macro() ActiveWorkbook.Save Dim MyPath As String, MyCompletePath As String MyCompletePath = ActiveWorkbook.FullName Dim wkbSource As Workbook Dim wkbDest As Workbook Dim shtToCopy As Worksheet Set wkbSource = Workbooks.Open("C:\Users\n0079864\Desktop\Analyst_Summary.xlsx") Set shtToCopy = wkbSource.Sheets("Analyst_Summary") Set wkbDest = Workbooks.Open(MyCompletePath) shtToCopy.Copy wkbDest.Sheets(1) Workbooks("Analyst_Summary.xlsx").Close False Application.ScreenUpdating = False End Sub JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Are you copying into the workbook which has the code, or some other workbook? Using ActiveWorkbook.FullName to open another workbook seems odd, and may lead to problems. Try the following changes: Sub Analyst_Summary_macro() Dim wkbDest As Workbook Set wkbDest = ActiveWorkbook 'or ThisWorkbook? wkbDest.Save With Workbooks.Open("C:\Users\n0079864\Desktop\Analyst_Summary.xlsx") .Sheets("Analyst_Summary").Copy wkbDest.Sheets(1) .Close False End with End Sub

Related questions

0 votes
    write about cancel,enter and insert function button in ms excel 2010 Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    DROP TYPE Position; CREATE OR REPLACE TYPE Position AS OBJECT (longitude NUMBER(11,7), lattitude NUMBER(11, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Following Regular Expression does work in HTML like following example: But if I want to put that pattern in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I'm currently working on a lottery app and have coded the UI for it. The problem is that my page ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    Ok, this is weird. My terminal (iterm2 with zsh) exits a command with control + m or control + ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    I have been implementing a Next.js app for a side project of mine. It is a basic brochure-style ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    axios.js throws CONNRESET error (certificate not found in request) but request package works for same p12 ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I have added some code for a "lightbox" effect on one of my images (below) [The website is live] ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    I'm trying to convert a ply to a polyhedron stored in postgis. In this example I have a cube ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I am new to VSTS and I am trying to get a msbuild task to publish a SQL Server project using a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    I have a problem. DataGridView displays only date if time is midnight. First I thought that is because of ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 19, 2022 in Education by JackTerrance
0 votes
    This program is designed to allow a food pantry to take attendance. To that end, The admin enters ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    To retrieve the day of the month from the Date object, which is the code to select? var date_obj = new Date(2016 ... .getMonth(); d) var month_day = date_obj.getDate(); #Loans...
asked Oct 9, 2020 in Technology by JackTerrance
0 votes
    I am trying to build libtorrent on shared hosting. So built CPPUnit(1.12.1) with --prefix=$HOME. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
...