Excel not copying worksheets

Copying worksheets in Excel is a common task.  It provides massive time savings by allowing you to use the content of the worksheet over and over without the need to regenerate the formulas or the formatting.  Most often copying a worksheet within the same workbook is easy and mostly problem-free.  However, if you are trying to copy worksheets with a table or worksheets to a different workbook that contains formulas, then you might encounter problems.  The aim of this article is to set out how you can copy worksheets and how you can overcome some of the problems you might encounter.

How to copy a worksheet or multiple worksheets to the same workbook

What happens to Formulas and Formatting and Tables when you copy a worksheet to the same workbook?

How to copy a worksheet or multiple worksheets to a different workbook

What happens to Formulas and Formatting and Tables when you copy a worksheet to the same workbook?

What if you do not want to copy the reference sheets to a different workbook?

Use find and replace.

Change source data.

How to copy or duplicate an Excel worksheet or multiple worksheets to the same workbook

To copy one or more worksheets to the same workbook, select the tabs that you want to copy.  To select multiple tabs, hold down control as you left-click on the mouse to select each tab.

Once you have selected the tabs to be duplicated, right-click to open the tabs menu.

From the tab’s menu, select Move or Copy.  This will open the Move or Copy Options box

Copying and Duplicating Excel Worksheets

The default setting in Move or Copy is to copy the selected worksheets to the same workbook.  If you wish to copy the worksheets to a different workbook then you would use the To book dropdown. This will allow to select a different Excel workbook, but we will look at that later in this article.

You will also note, the first worksheet appears to be selected in the Move or Copy option box.  This is deceiving, as we have selected the worksheets before we opened the box.  In this case, we selected the worksheets Calculations and Sheet3, however Data sheet is highlighted in the Move or Copy options box.

To copy the selected worksheets, ensure you have included a tick on the Create a copy box and press ok.

Copying and Duplicating Excel Worksheets

Excel will now make a copy of these sheets and give them a default name as the original sheet name with a number at the end. 

When you are making a copy of these worksheets, if you want the placement of the tabs to be at the end, you must select (move to end) in the Move or Copy options box.

What happens to Formulas and Formatting and Tables when you copy a worksheet to the same workbook?

When you copy a worksheet with formulas into the same workbook, all relative and absolute references should remain in place in each formula, relative to the new worksheets.  However, when you are copying worksheets with formulas to another workbook, you may encounter problems, but we will deal with that later in the article.

When you copy a worksheet or group of worksheets the formatting on each sheet will also copy across to the duplicated sheet.

It is possible to copy a worksheet that contains a table within the same workbook.  To copy a worksheet with a table, follow the same method as above, by first selecting the worksheet tab that you want to copy.

A problem occurs when you want to copy multiple worksheets and one or more of these contains a table.  In this case, Excel will give you an error.

Copying and Duplicating Excel Worksheets

When you need a copy of a worksheet with a table, you must select the worksheet that contains the table on its own and copy this worksheet separately and not with another group of worksheets.

When you create a copy of a worksheet with a table, the table name in the duplicate worksheet will be given a suffix.  For example, if the table was called Details, the duplicate worksheet table may be called Details2. 

How to copy a worksheet or multiple worksheets to a different workbook

To copy one or more worksheets to a different workbook, select the tabs that you want to copy.  To select multiple tabs, hold down control as you left-click on the mouse to select each tab.

Once you have selected the tabs to be duplicated, right-click to open the tabs menu.

Copying and Duplicating Excel Worksheets

From the tab’s menu, select Move or Copy.  This will open the Move or Copy Options box.

Copying and Duplicating Excel Worksheets

Using the To Book dropdown, select the workbook you wish to place the duplicated sheets.  You can also select a new book to open a new Excel workbook containing the duplicated sheets.

To copy the selected worksheets to the selected workbook, ensure you have included a tick on the Create a copy box and press ok.

What happens to Formulas and Formatting and Tables when you copy a worksheet to a different workbook?

When you copy a worksheet with formulas to a new workbook you can encounter problems.  If you copy a worksheet with formulas that reference cells in a different worksheet in the original workbook and you do not copy the reference sheets too, then the formula in the duplicate sheet will contain the original sheet references.

Copying and Duplicating Excel Worksheets

Very often this problem is not spotted and can cause problems at a later stage.  To ensure this does not happen when you are copying the worksheets that you also copy any sheets formulas might reference.

Formatting from original worksheets will copy across when you copy a worksheet to a different workbook.

If however a worksheet contains a table, then you can not copy this worksheet across in a group.  You must copy this worksheet separately.  This means if a worksheet with formulas references a table, you can not copy these as a group and the workbook reference will be included in any formulas that reference the table in the duplicated sheets.

What if you do not want to copy the reference sheets in formulas to a different workbook?

There are often when you do not want to copy all sheets to a different workbook. Yet at the same time, you do not want the workbook references to be added to the formulas in the duplicated sheets.  Unfortunately, there is no simple trick to avoid this and we must create a workaround.

Use find and replace.

You can use Find and Replace to find all the workbook names and replace them. To this, press CTRL + F to open Find and Replace.  Enter the worksheet name in the Find box and leave the Replace box empty.  Select replace all and this will remove the sheet name from all the formulas.

Copying and Duplicating Excel Worksheets

Change source data.

If you have copied a worksheet from a different workbook and it contains links to sheets within the original workbook, you can change the source data to update these formulas to the current workbook.

To do this, first, save the workbook.  Then from the Data Ribbon, under the queries and connections group select Edit Links.

Copying and Duplicating Excel Worksheets

The edit link option box will open.

Copying and Duplicating Excel Worksheets

Select Change Source and then navigate to the newly saved file and select the file.  The workbook references to the old source will now be change and the formulas will no longer link to the original worksheet.

Over to you Now

there are other ways to copy worksheets, drop a comment below sharing a different method with us.

Have you had problems Copying and Duplicating Excel Worksheets?  If so share some details with us and how you overcame the problem

Доброго времени суток.
Заткнулся на казалось-бы элементарной вещи. В открытой книге нужно открыть новую книгу, скопировать из нее в первую книгу лист «Export»и закрыть вторую книгу. Вот кусок кода:

Код
Sub Макрос1()

Dim xlBook, MyXlBook As Excel.Workbook
Dim AV As Excel.Worksheet
Set MyXlBook = Application.ActiveWorkbook

Filename = Application.GetOpenFilename '
Set xlAPP = CreateObject("Excel.Application")
Set xlBook = xlAPP.Workbooks.Open(Filename)

xlBook.Sheets("export").Copy After:=MyXlBook.Sheets(MyXlBook.Sheets.Count)

xlBook.Close True
Set xlBook = Nothing
Set xlAPP = Nothing

End Sub

Выдает ошибку «Метод Copy из класса WorkSheet завершен неверно.» В архивах на подобную тему прямого ответа не нашел, а код для копирования вроде бы такой-же как у меня. Подскажите, пожалуйста, что не так с моим кодом.
Заранее спасибо, и всех с наступающим праздником.

Asked
11 years, 4 months ago

Viewed
339k times

I have found similar questions that deal with copying an entire worksheet in one workbook and pasting it to another workbook, but I am interested in simply copying an entire worksheet and pasting it to a new worksheet — in the same workbook.

I’m in the process of converting a 2003 .xls file to 2010 .xlsm and the old method used for copying and pasting between worksheets doesn’t paste with the correct row heights. My initial workaround was to loop through each row and grab the row heights from the worksheet I am copying from, then loop through and insert those values for the row heights in the worksheet I am pasting to, but the problem with this approach is that the sheet contains buttons which generate new rows which changes the row numbering and the format of the sheet is such that all rows cannot just be one width.

What I would really like to be able to do is just simply copy the entire worksheet and paste it. Here is the code from the 2003 version:

ThisWorkbook.Worksheets("Master").Cells.Copy
newWorksheet.Paste

I’m surprised that converting to .xlsm is causing this to break now. Any suggestions or ideas would be great.

pnuts's user avatar

pnuts

58k11 gold badges85 silver badges137 bronze badges

asked Dec 9, 2011 at 0:32

0

It is simpler just to run an exact copy like below to put the copy in as the last sheet

Sub Test()
Dim ws1 As Worksheet
Set ws1 = ThisWorkbook.Worksheets("Master")
ws1.Copy ThisWorkbook.Sheets(Sheets.Count)
End Sub

answered Dec 9, 2011 at 0:49

brettdj's user avatar

brettdjbrettdj

54.6k16 gold badges113 silver badges176 bronze badges

0

ThisWorkbook.Worksheets("Master").Sheet1.Cells.Copy _
    Destination:=newWorksheet.Cells

The above will copy the cells. If you really want to duplicate the entire sheet, then I’d go with @brettdj’s answer.

answered Dec 9, 2011 at 7:19

Jean-François Corbett's user avatar

1

' Assume that the code name the worksheet is Sheet1

' Copy the sheet using code name and put in the end.
' Note: Using the code name lets the user rename the worksheet without breaking the VBA code
Sheet1.Copy After:=Sheets(Sheets.Count)

' Rename the copied sheet keeping the same name and appending a string " copied"
ActiveSheet.Name = Sheet1.Name & " copied"

answered Mar 31, 2014 at 20:46

thanos.a's user avatar

thanos.athanos.a

2,0482 gold badges32 silver badges28 bronze badges

I really liked @brettdj’s code, but then I found that when I added additional code to edit the copy, it overwrote my original sheet instead. I’ve tweaked his answer so that further code pointed at ws1 will affect the new sheet rather than the original.

Sub Test()
    Dim ws1 as Worksheet
    ThisWorkbook.Worksheets("Master").Copy
    Set ws1 = ThisWorkbook.Worksheets("Master (2)")
End Sub

answered Jun 3, 2014 at 19:41

Kes Perron's user avatar

Kes PerronKes Perron

4555 gold badges10 silver badges24 bronze badges

'Make the excel file that runs the software the active workbook
ThisWorkbook.Activate

'The first sheet used as a temporary place to hold the data 
ThisWorkbook.Worksheets(1).Cells.Copy

'Create a new Excel workbook
Dim NewCaseFile As Workbook
Dim strFileName As String

Set NewCaseFile = Workbooks.Add
With NewCaseFile
    Sheets(1).Select
    Cells(1, 1).Select
End With

ActiveSheet.Paste

Olle Sjögren's user avatar

Olle Sjögren

5,2653 gold badges31 silver badges51 bronze badges

answered Dec 31, 2012 at 18:11

shanxiang shen's user avatar

1

If anyone has, like I do, an Estimating workbook with a default number of visible pricing sheets, a Summary and a larger number of hidden and ‘protected’ worksheets full of sensitive data but may need to create additional visible worksheets to arrive at a proper price, I have variant of the above responses that creates the said visible worksheets based on a protected hidden «Master». I have used the code provided by @/jean-fran%c3%a7ois-corbett and @thanos-a in combination with simple VBA as shown below.

Sub sbInsertWorksheetAfter()

    'This adds a new visible worksheet after the last visible worksheet

    ThisWorkbook.Sheets.Add After:=Worksheets(Worksheets.Count)

    'This copies the content of the HIDDEN "Master" worksheet to the new VISIBLE ActiveSheet just created

    ThisWorkbook.Sheets("Master").Cells.Copy _
        Destination:=ActiveSheet.Cells

    'This gives the the new ActiveSheet a default name

    With ActiveSheet
        .Name = Sheet12.Name & " copied"
    End With

    'This changes the name of the ActiveSheet to the user's preference

    Dim sheetname As String

    With ActiveSheet
        sheetname = InputBox("Enter name of this Worksheet")
        .Name = sheetname
    End With

End Sub

answered May 11, 2018 at 15:10

Maccus's user avatar

MaccusMaccus

311 silver badge8 bronze badges

  1. 08-11-2005, 04:05 PM


    #1

    Can’t copy an Excel worksheet

    I have been unable to make a copy of a worksheet within a file or by copying
    it to a new workbook. When I try copying it to a new file, the new workbook
    appears temporarily and then disappears. Any suggestions would be
    appreciated.

    I am using Excel 2002.


  2. 08-11-2005, 09:05 PM


    #2

    Re: Can’t copy an Excel worksheet

    How are you copying the worksheet?

    ctrl-click and drag

    click on the worksheet tab and edit|move or copy worksheet.

    I’ve never had any trouble with this kind of thing. Maybe you could try doing
    the same stuff when you start excel in safe mode.

    close excel
    windows start button|run
    excel /safe

    File|open your workbook
    and copy that worksheet.

    ======
    Another alternative while you’re trying to figure out what’s going on.

    Open your workbook
    file|Save as|a nice new name
    delete the worksheets you don’t want.
    Save that new workbook with just that worksheet.

    Gaby wrote:


    >
    > I have been unable to make a copy of a worksheet within a file or by copying
    > it to a new workbook. When I try copying it to a new file, the new workbook
    > appears temporarily and then disappears. Any suggestions would be
    > appreciated.
    >
    > I am using Excel 2002.

    Dave Peterson


  3. 08-12-2005, 09:05 AM


    #3

    Re: Can’t copy an Excel worksheet

    Thanks, Dave. In the end I did your last option. It seems to be a corrupted
    workbook.

    «Dave Peterson» wrote:


    > How are you copying the worksheet?
    >
    > ctrl-click and drag
    >
    > click on the worksheet tab and edit|move or copy worksheet.
    >
    > I’ve never had any trouble with this kind of thing. Maybe you could try doing
    > the same stuff when you start excel in safe mode.
    >
    > close excel
    > windows start button|run
    > excel /safe
    >
    > File|open your workbook
    > and copy that worksheet.
    >
    > ======
    > Another alternative while you’re trying to figure out what’s going on.
    >
    > Open your workbook
    > file|Save as|a nice new name
    > delete the worksheets you don’t want.
    > Save that new workbook with just that worksheet.
    >


  4. 08-12-2005, 10:05 AM


    #4

    Re: Can’t copy an Excel worksheet

    If you think it’s corrupted, then I think you may want to start rebuilding it.

    If the workbook ever gets so bad you can’t open it, well, you know the rest of
    the warning!

    ===
    Ps. The one workbook that I had that was corrupted had the same kind of
    problem. I could move the sheet, but I couldn’t copy it. I rebuilt that one
    sheet and haven’t had any trouble since. (But man, oh, man, it was a pain
    rebuilding the worksheet.)

    Gaby wrote:


    >
    > Thanks, Dave. In the end I did your last option. It seems to be a corrupted
    > workbook.
    >
    > «Dave Peterson» wrote:
    >
    > > How are you copying the worksheet?
    > >
    > > ctrl-click and drag
    > >
    > > click on the worksheet tab and edit|move or copy worksheet.
    > >
    > > I’ve never had any trouble with this kind of thing. Maybe you could try doing
    > > the same stuff when you start excel in safe mode.
    > >
    > > close excel
    > > windows start button|run
    > > excel /safe
    > >
    > > File|open your workbook
    > > and copy that worksheet.
    > >
    > > ======
    > > Another alternative while you’re trying to figure out what’s going on.
    > >
    > > Open your workbook
    > > file|Save as|a nice new name
    > > delete the worksheets you don’t want.
    > > Save that new workbook with just that worksheet.
    > >

    Dave Peterson


Cant Copy Or Move Sheet — Greyed Out — Excel

Afternoon all,

Can someone take a look at this for me? This workbook, which is unprotected, will not let me copy or move an existing sheet, or create a new one.

What have I done?

Excel VBA Course

Excel VBA Course — From Beginner to Expert

200+ Video Lessons
50+ Hours of Instruction
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

(80% Discount Ends Soon!)

View Course


Similar Topics



We have a workbook that does not allow us to use the Move or Copy command. When we right click on the worksheet and select Move or Copy, we are able to check the box to make a copy, but when we click OK nothing happens.

We have checked to make sure that the workbook and worksheet:
1. Are not protected
2. That there are no hidden worksheets
3. That there are not worksheets that exist with the same name
4. That not all the worksheets are selected

There are only two worksheets in this workbook.

Any ideas of why we are unable to make a copy of this worksheet within the same workbook or to another workbook?

View Answers


I have protected a worksheet as it has several formulae on that I do not wat anyone else to mistakingly delete. I then have spent time on setting up a sheet to track changes (just in case this has any bearing on the problem). This is the only thing that I think I have changed since protecting this morning and now I cannot unprotect the sheet. I have not protected the workbook and the unprotect sheet function is now greyed out.

Any ideas?

View Answers


Also, I cannot move the Pivot Table from the new Worksheet it is created in, to my existing Worksheet.

I am running Excel 2011 for Mac.

I have a Worksheet with a small amount of data, and when I click the Pivot Table button it automatically creates the Pivot Table in a new Worksheet. The Pivot Table data is fine, but I want it to display alongside the source data.
I’ve tried using the Move Pivot Table option and choosing to Create Pivot Table in Existing Worksheet and choosing a source cell alongside my current data, but nothing appears. Also, I checked in Edit menu and found that the Pivot Table appears to have not even been created/moved because there is no option to undo it.

Appreciate any help, let me know if you have any further questions.

Hunter

View Answers


I suddenly see that parts of my sheet has been greyed out without me having
consciously done it. How do I make sheet printable again?

View Answers


Some time ago I created a spreadsheet and greyed out the areas that weren’t needed. Now I need to expand the spreadsheet and use more columns. Trouble is I’ve forgotten how to unhide those columns. I didn’t write any macros and usings the right-click unhide method is proven futile. The sheet isn’t protected which is puzzling since I can’t get the mouse to even highlight any of the greyed out areas.

Any suggestions would be fantastic!
thanks

View Answers


I recently moved into a new office and I am using a brand new computer on our network. When trying to edit an existing file, I’m not able to select a single cell and type. After clicking on a cell, if I move the mouse at all (even without pressing the left button) it just continues highlighting cells no matter where I move the mouse. I am also not able to click on the tool bars at all. I have to actually Ctrl-Alt_del to get out of the program. I’m sure this is something simple, but I don’t know that much about this program. Any help would be greatly appreciated.

View Answers


Hi there,

I am currently using ‘Activecell.Offset(1,0).Select’ to move down one cell at a time when I click on a button.

The problem I have now is that if someone was to filter by something then the ‘next cell down’ could be hidden behind the filter (by that I mean it didn’t meet the filter criteria).

Is there anyway to move down to the next row, even if that row does not follow on Sequentially .

Any help would be greatly appreciated.

Regards,

James

View Answers


I have a workbook that I have unprotected (all — workbook & worksheets). However, I have a sheet that I know is there (because I created it) but I cannot unhide. I know it is there because in the Name Manager, it points to it. Any idea how I can unhide it?

View Answers


Hi,

I am entering lots of family history data into a spreadsheet. At the simplest I have columns (in cells A1 B1 C1) the headings, Surname, Forename, Year. Right now, I enter in cells A2 B2 and C2 say: Smith <Tab> John <Tab> 1555 <Enter, move mouse to the A column in the next row down). What I want to happen is when I have entered the last data in a row and pressed <Enter> I move automatically to the A-column in the next row down.

Is this possible?

Regards and a Merry Christmas to all

Wibs

View Answers


Hello, what I would like to do is take a portion of a sheet….. So the cells I want to mirror are in the proposal sheet cells B32 x F51. And then mirror the exact duplicate copy to another sheet. The other sheet should have those same values at A20 X G39. What I am trying to do is have a sheet that has skus, prices, and so forth and then when I add,delete, merge, color, or do anything to the cell on the «proposal creation» sheet I want it to mirror only a specific cells to another sheet that is «salesman copy» that we will print to clients. So this way ont he proposal copy a salesman can insert rows or even change the color of the cells and then have it mirror exactly the same on the «salesman copy» which is what we will print for clients. Thank you.

View Answers


Hi all,

I hope you can help me with what I would like to do. I’ve searched and searched and not come up with anything yet!!

I have one sheet which is my ‘data’ sheet with a number of columns, one of which is a date which may be repeated.

I then want to use another sheet with two cells where two dates can be entered and a button which allows you to copy the rows of data from the data sheet which have dates between the two specified originally. The list in the data sheet may not be in date order although I could update a macro to do this for me if needed. I would also like to do it so that if «ALL» is typed in the date fields, it pulls over ALL the data. (Or something similar)

Any help you can give would be much appreciated.

Cheers,

Kevin

View Answers


Hi there, longtime user firsttime poster. Looking for some help as I am a non-expert with macros. Here’s what I’m trying to do:

We have to submit things to a certain regulatory body and we usually enter tasks in as soon as they come, do the submission, and then keep a record of that submission.

So, I have a workbook with two sheets, one is «TO DO», the other is «ARCHIVE». Both sheets have the same columns and everything. I am looking for a macro that will automatically cut a (row) from the TO DO sheet and paste it in into the ARCHIVE sheet once it is done, then delete the cut row from the TO DO list so it stays topped up.

The trigger for archiving is the columns M and N which are titled «Complete ?» and each has a validation drop down that says «YES». When both cells in columns M and N have the YES in them, I would like the macro to make the above mentioned actions.

I ran a search on the forums and found something similar, but not quite what I was looking for.

Any help?

View Answers


Hi everyone

I need some help in this:

In a excel workbook when I copy a worksheet (to duplicate with other name) there is always a name conflict and so I have to say yes (maintain the name) or say no (and excel ask for other names) many times (sometimes more than 50 times pressing the enter button. Its possible to disable this feature?

My best regards and Thanks in advance.

Melnik Kuhn

View Answers


I’m working on a speadsheet that has thousands of line items with lots of great information, but not in the fields I need them to be in. Is there a formula to move for example cell contents A26 to B25 and D26 to F27? Also I have contents in one cell that I need to break apart is there a formula for that too? I searced the help and the net an came up with nothing. Maybe I’m not wording it correctly, but I’d appreciate the help.

View Answers


Hi guys,

Looking for some help and would appreciate your help. I want to prevent people cutting/copy/pasting on a spreadsheet I have developed. A couple of users keep doing so which in turn knackers my formulas. There will be occasions where I will need to be able to use these functions for maintenance and updates. Ideally I would like have a private marcro which I can run to enable these features as and when needed.

I’ve been at this all morning and feel like I’m going round in circles. I’ve tried various bits of code (sourced via google etc) & have ended up with a whole manner of outcomes but not the one I want.

To summaraise what I am looking for is some vba code which will do the following

Disable cut,copy and paste when sheet is opened

Enable cut,copy and paste when closed

Have a macro which when run will allow me to cut/copy paste so as to implement updates when necessary.

Can anyone help?

Thanks in advance

View Answers


I just worked with a data set where I needed to create a unique key based on existing information where no unique key was set up as a field. I accomplished it by concatenating (using the & [concatenation] operator) several fields based on what I hypothesized and observed about their content.

I’m thinking there has to be a more automated way to discover the best unique key of existing fields and their data. I thought I’d post this as a challenge because I don’t know the «right» (or better) answer.

Anyone have any ideas?

View Answers


I have a VBMacro Excel file loaded on a Server that numerous people access. A Macro in this file creates a Copy of a specific Sheet within the Active Workbook and I want to Save it to the individual’s Desktop.

How do I find out what the current User’s desktop folder path is each time the Marco is run by a different User?

Example User’s path: ‘C:Documents and SettingsjfarcDesktop’

Where ‘jfarc’ is the name of the current User which, will of course change with every different User that runs the Macro.

Also, is there a way to pull out of Excel what is the current User’s ‘Options | General | Default File Location’ entry? Which may differ from the above directory.

I am familiar with and use the following coding for Opening/Saving files to the current directory of the opened workbook, but it only gives the path of the existing Excel workbook and not the current User’s Directory Path:

Dim wbThis As Workbook
Set wbThis = ThisWorkbook
ChDir wbThis.Path

View Answers


I have a problem sometimes. I will click on a cell to add information.
The cell turns blue and then wherever I move, it highlights those to.
No matter where I go on the page. If I Alt-Tab and work in another
program on my computer, that excel page keeps highlighting wherever
I move even in those other programs (I know this sounds confusing).
When I return to excel thousands and thousands of cells are blue.

The biggest problem is that the highlighting won’t turn off, no matter
what. I can’t select anything from the tool bars, do any work on the sheet or close the program.
I can close it only with the task manager but when I open it again,
the cursor is still stuck in the highlighting mode and won’t perform any
other functions.

Do you think this is a problem with my computer, the excel program? I have changed my mouse and this didn’t help.
Is there some shortcut to turn off this highlight feature other than restarting
my computer. Which is the only current way I can get rid of it.

Thanks for any advice,

View Answers


I know that you can do PASTE > VALUES in order to keep your conditional formatting on an existing sheet, but sadly the people in my office are prone to not understanding this («It’s a bit technical») and so they just pasting blocks of text from elsewhere and lose it all…..

Does anyone have any suggestions about how to maintain the formatting when people just do a traditional C&P ?

Thanks

View Answers


Newbie here and I don’t know where to start… I’m trying to set up a macro to when data is pasted to a TEMPLATE worksheet tab it will automatically copy and paste data to another sheet based on the month value.
For example:
If data contains 06/01/2011 in cell A1, then data needs to be pasted to «Jun» worksheet within the same workbook.

Can someone assist or can give some direction? Thank you

View Answers


  • Remove From My Forums
  • Question

  • Hello all,

    I have a Microsoft Excel 2010 user (who is quite an experienced user) that is having trouble copying worksheets to a new workbook.  When she right-clicked on the tab of the worksheet she wants to copy and then chooses
    Move or copy… , all of her open workbooks do not appear in the To book
    dropdown.  I copied both workbooks to the same folder on the Desktop, then opened them both, but the workbooks do not show in the dropdown.  This is happening for all files on her machine, not just these two particular files.  It is only
    happening with this one user; I have not heard of this situation from anyone else in the organization (and cannot replicate the issue on my own computer).  She is using Windows 7.

    When she first called to report the issue, I didn’t believe her, but sure enough the problem is there.  I’ve done searches of this forum, searches of google, and nothing seems to come up (other than you cannot open workbooks in seperate instances, which
    is not the problem here).

    Any ideas or words of wisdom?

    Regards,

    Nicole

Answers

  • Hello all,

    I have a Microsoft Excel 2010 user (who is quite an experienced user) that is having trouble copying worksheets to a new workbook.  When she right-clicked on the tab of the worksheet she wants to copy and then chooses
    Move or copy… , all of her open workbooks do not appear in the To book
    dropdown.  I copied both workbooks to the same folder on the Desktop, then opened them both, but the workbooks do not show in the dropdown.  This is happening for all files on her machine, not just these two particular files.  It is only
    happening with this one user; I have not heard of this situation from anyone else in the organization (and cannot replicate the issue on my own computer).  She is using Windows 7.

    When she first called to report the issue, I didn’t believe her, but sure enough the problem is there.  I’ve done searches of this forum, searches of google, and nothing seems to come up (other than you cannot open workbooks in seperate instances, which
    is not the problem here).

    Any ideas or words of wisdom?

    Regards,

    Nicole

    I just tried moving a sheet from one book to another. I had four books open before I started. I have a habbit of opening everything in a new instance of Excel. When I went to move a sheet from one book to another, it only gave me the options of the book
    I was in or «new book» even though I had four Excel files open. Then in the same instane of Excel, I opened another book by navigating File —> Recent to have two books open in the same instance. I then went to copy a sheet and the books it showed as available
    were the book I had already open, and this second book which I opened in the same instance of Excel. It still did not show the other three books which were opened in their each instance of Excel. This tells me that (at least on my machine anyway) if you want
    to copy a sheet from one book to another, both books should be opened in the same instance of Excel at the same time.

    • Edited by

      Saturday, December 10, 2011 4:26 PM

    • Marked as answer by
      Nicole Boivin
      Monday, December 12, 2011 9:35 PM

Понравилась статья? Поделить с друзьями:
  • Excel not closing vba
  • Excel not closing files
  • Excel not case sensitive
  • Excel not calculating sum
  • Excel norm inv на русском