What I have is a table of employees names, which site they work at and a comment.
I have a table on another sheet with the addresses of all our sites.
What I need is a macro which will:
>look at the active selection
>copy their name(sheet 1, row B) & comment (sheet 1, row G)
>look up the site they work at (sheet 1, row D)
>copy the relevant address (sheet 3)
>paste the name and addresses into different sheet
>paste the comments into another sheet
This will be used to make printable labels for letters that we post out to employees. They will need to be split up so each name and address is printed on a different label.
The comments will be printed onto letters which will have a headers which is the same for everyone, but would be nice if they could be personalised with the comments of their managers and perhaps their names (something like "Hi John, you have been selected by your manager for your great work, please find enclosed your badge. Jeff's comments: "Comment 1""). But this part is a nice extra, the important part is the address labels.
What I would like a macro to do is take information from cells A1 to P1 on sheet1 and add them to the table in sheet2 and then I can save the workbook. The information in A1 to P1 is taken from other cells around the workbook. Once the information is in sheet 2 I can delete or change the informtion in sheet 1 without it affecting the copied information in sheet 2.
The next time I open the workbook I can enter the information in cells A1 to P1 on sheet1 then run the macro again and will then take the information and add it to the bottom of the table in sheet2 underneath the previous information that had been added - obviously the source of this information will now be deleted.
I will need to do this again and again building up the table in sheet2. The table will also use columns A to P like in sheet1.
I would like to implement specific cell ranges from two specific worksheets each within 33 workbooks (which all have several tabs) into a summary page in a separate workbook.
The cell ranges are going across my spreadsheet in rows and I would like for them to transpose into a columns depending on the data which I have separated by catergory on the summary page. They are all on the same location in each workbook which is separated by country. The cell ranges are E26:P37 and I would like to transpose them and have them put below eachother without overwriting for my format on the summary page, how I can put this together in a macro?
On the "Complete Backlog" tab of my workbook, I want users to enter in the requested information based on the column header. Then I would like a Macro attached to a button that says "Refresh" that the user would click after they have entered in all of the information. This macro should look in Column M (WIP Status) and if any of the cells say "Close", it should Cut the entire row from the spreadsheet(Ex. A2:M2) and Paste it into the speadsheet titled "Closed Jobs".
This is so that as jobs are closed/finished, they are removed and stored on a separate sheet. The items would have to be pasted so that it pastes into the next available row - not just on top of each other.
I also need another macro that i can put into a button that doesn't "delete" a row from the sheet, but just copies over to another sheet - so that there are two instances in the workbook.
If would look something like: If a cell in "Column G / Director" of the "Complete Backlog" speadsheet is equal to "Snodgress" then copy columns A-L of the same row to the spreadsheet titled "Snodgress" - of course skipping down the rows to the next blank row.
.....is equal to "Herr" copy row to "Herr" spreadsheet. ....is equal to "McCormick" copy row to "McCormick" spreadsheet. and so on.
In attached workbook...when user will click on "Relate" button on "rawdata" sheet....then data should be visible in same form as showing in "relate" sheet...
I'm trying to make a script that will copy and paste a row in a table underneath the last row in that table when a button is clicked. I've simply recorded a macro to get things rolling, however whenever the macro does an insert to paste the data it goes above the last new entry which doesn't work for my purposes,
I am creating a simple IF function. that says IF cell (cell name) = 2007 then copy and special paste values from these cells into this location...I am not entirely sure how this should be set up.
I have a very complicated table that has a bunch of links to other cells on the sheet. I would like to duplicate this table onto another sheet in my workbook. However, when I try to do that, the links also change when I paste it on the new sheet. Is there a way I can keep all of the links to the original page after I have pasted the table on the new sheet?
I have a tab with several small tables (Column E-G). What I need to do is to copy them as pictures, move them to another tab, change the picture size, and align them in the new tab.
The data set is huge and it would involve lots of labor if copy and paste one by one. Is there any way to do it using a macro? I tried to record a macro, but it doesn't work. It will not change the size of the picture and I don't know how to tell Excel to align them the way I want.
I am looking for better way to copy formula and paste it to dynamic table (I don’t know how many rows there is at the table). The procedure takes long time for the user. (the table may contain more than 30,000 rows !!).
I would like to know if it's possible to copy a pivot table from one sheet and paste it into in another sheet such that two pivot tables are not linked i.e. if I create a calculated item in pivot table it doesn't show as an item in another. If yes, how could I do that?
I have a spreadsheet with macros and conditional formatting assigned to it. What I want is to be able to copy only the displayed contents, without the macros and formatting instruction, to a separate workbook for reporting purposes.
I have a problem in creating Pivot Table in the format that I want for the purpose of report, so I'm not even sure if I should use it at all.
In the file attached, I have a sample data source in sheet 'Source'. Basically the data are already in the list format.
For the purpose of reporting, I want to make this data in the format of sheet 'Final Format Wanted'. Note that the report only takes in data from columns D, M, N, O ( Headings highlighted in red).
(1) I understand that I can do something like this with a Pivot Table, and I already did something like it in the sheet 'Pivot'.
The Pivot table works well for Total Exposure (data from column M)The thing is, I want just the Grand Total Figures for column N and O instead of putting it in the data section itself. For better explanation, please take a look at sheet 'Final Format Wanted'. I just want the grand total for these 2 columns because they are less important and I want to be able to squeeze just the relevant figures for the report. Can I do this?
(2) Another way I have thought of is actually using a combination of Vlookup and concatenate function (look at sheet 'vlookup'). The thing is, some names that I used to concatenate might appear twice (look at row 39 and 40 in sheet 'Source' under column L), so if I am to use this, I'll need to find Sub-total first then copy and paste each item again into the format I wanted.
To me, this seems to be a really long way of doing it. Pivot Table is preferable in that it can count the total automatically for me, but I can't get the format I want.
Does anyone have any suggestion what I can do? If I use (1)Pivot table - how can I get just the Grand Total of the other 2 columns? (2)Vlookup - Is there a faster way in getting the subtotal and ultimately get the data in the format I want?
I have a sheet in which you enter in new information. I need a macro to copy that information onto another sheet, onto the first empty row, so it does not clear the information that has already been entered. The first sheet is an information entry sheet, and the second is the database, which contains all of the information. I hope this is clear, if you do not understand, I will be happy to rephrase my question!
I have included two screenshots of the excel system. They are named.
I want the same affect as copy a table and pasting into the email. So i guess i need to copy a range and save as html in a string. It seems like it would be simple since its just copy and paste into the email, but i've been unable to find anyting on it.
When i click a button in excel, i need the table from a certain "Range" to copy/paste in the body of an e-mail that will send itself automatically. Now, i know how to build the macro to automatically send the e-mail but i can't find a way to insert the table in it. here's the code i'm using to send the e-mail:
Public Sub SendMail2() 'Tools --> references --> Microsoft Scripting runtime 'Variables Dim EMailSendTo As Variant
[Code].....
But i don't know how to adapt the code for my problem.The fact is, i've just started to write macros and the code i'm using for the e-mail isn't from me, i have juste adapted it for my problem.
my macro pulls download in on sheet1. On sheet2 it makes a pivottable of it with horizontally displayed the suppliers and vertically the codes of products. This is of course dynamic (one month it may contain 10 suppliers + 8 products, other month 15 suppliers + 20 products). On sheet3 is the (static) lay-out of all suppliers and all products. Now, what I want is that all fields <> empty (or zero) from the pivot table are to be copied and placed in sheet3, the 'report' I have to fill in. index and match won't do the job I think.
I have a chart and a data table (please see attached file named "delete_1.xls).
I need to present these 2 items in a single slide of PowerPoint.
I have done like this.
-First copied the chart from Excel. -Then pasted it in PowerPoint using "Paste special". -Then clicked "picture (windows metafile)" this is to reduce memory consumption
Then repeated the above steps for the excel table too.
The PowerPoint slide that I got cannot be attached as system doesn't allow me.
Question: I wanted to a give a paper copy of the PowerPoint slide to my Director who needs a PowerPoint slide and not an Excel chart. But in the slide, the numbers of the table look much juggled and as if the numbers are too closely typed.
I tried with various different fonts in Excel and then copy and pasted in PowerPoint but the problem persists.
What things I should do in Excel table so that cell values are clear in the Table presented in PowerPoint ?
In excel 2010, I'm using the following to copy and paste values and formatting from a pivot table, but i lose the formatting (TableStyle2 = "PivotStyleLight8"):
for my school project, I am right now doing time tracking for all of my activities throughout the day with excel. Here is basically what I am doing: For everything I do, I record and put in start time and end time for the activity.(I use simple formula to subtract these twos) If my day goes on like study, break, study, meal, study, break and each activity takes one hour for each, I have total of 3 hours studying, 2 hours taking break and one hour for meal. I am using pivot table to show all totals for each activity.
Pivot table is working best as far as my knowledge goes as I can choose and look up total of multiple activity combined. The problem here is I am making one sheet per a day and I need to continue this for three months. (So that seems like 90 worksheet). What I was thinking is I make Sheet 1 as master sheet. Then, copy and paste the entire sheet for 90 sheets assuming all formulas including pivot table go along with them. then, when I put in new data to other sheet,magic happens and values in pivot tables will change relatively after refresh. You might be probably laughing hard at me right now. I know..I tried it for like 3 sheets. Simple formula to subtract endtime and start time still work accordingly with new data. But, Pivotal table is playing dead at all.
I researched and found that that might be problem with reference and absolute cell reference thingy. ( to make pivotal table work for different worksheet). All the cells used ( including column and row ) will be entirely the same for all worksheets. The only difference aka problem is different sheet. I want to use sheet 1 as a template and copy it down to next 90 sheets taking all contents except data. Is there anyway I can copy and paste the whole template to another 90 sheets while making pivot table work and calculate and update itself according to relative data from each own worksheet? I use excel 2007 btw
Right now I and getting an "Type not defined" error and the Dim oData As New DataObject step. Also if delete the code to clear the clipboard, I get an error at the WholeStory step.
Am working in Excel 07, but this would need to work in 2000 as well.
Need a macro that will...
1. Select a range of cells from B4 to RX. X is defined as the last row where Column A has a value. 2. Copy the visible cells 3. Open an email in Outlook (not via the email workbook function of excel), enter "Submission" into the title, enter "Dear X," insert 2 returns. 4. Paste the copied table (not the workbook, just what is on the clipboard) into the body the email.
What I have is a list of selected employees, with the site they work at next to them.
What I need is a macro which looks at the site they work at, references it with an address table in a separate worksheet and then pastes the site address along with the employee's name onto a thrid worksheet which will be used to print post labels.
>Look at which site the employee works at (Sheet 1, D:D) >Find the address of said site (Sheet 3) >Paste the relevant address along with the employees name (Sheet 1, B:B) into a separate worksheet.
This will be done weekly, and I need the macro to either only work on the latest's weeks table, or to just work with the current active selection. Any better way to layout my table.
I have a total of 30 sheets in my workbook. I would like to copy rows 21:1000 from sheets 5 - 27 and paste them into sheet 4 starting on row 21. The data ranges vary within sheets 5 - 27. For example, sheet 6 has data in rows 21:50, whereas sheet 10 has data in rows 21:500. I chose 21:1000 as a safe measure to ensure that all data starting on rows 21 onward gets copied.
I am having trouble thinking of how to create a macro which will copy the data from sheets 5 - 27 and paste into sheet 4 leaving no blank spaces in between pasted rows. Ultimately my goal is to use the filter boxes I have set up in the column headers of sheet 4 to quickly sort all the data pasted from sheets 5 - 27.