[VBA] Quick Copy / Paste

Jun 4, 2008

The goal of this code is to check between two sheets, if it finds a match between both sheets (somewhere in column A) then it should copy E,F,G columns from Sheet2 to Sheet1..

The

Sub Test()

aLastRow = ActiveSheet.UsedRange.Rows.Count ' last row of active worksheet; assume master is active sheet .....

View 9 Replies


ADVERTISEMENT

Repetitive Concatenation: Include At The Bottom Of The Email Addresses A Quick Copy And Paste Distribution List

Feb 3, 2010

I am getting ready to create a spreadsheet to list vendor's names and emails along with other data. I would like to include at the bottom of the email addresses a quick copy and paste distribution list. I have achieved this in the past by using a similar formula:

View 4 Replies View Related

Quick Access Toolbar Command - Paste Values / Transpose

Mar 11, 2014

I would like to create/use a copy command in the Quick Access Toolbar that combines Paste Values and Transpose into a single command. Have tried recording a macro but it becomes specific to the individual workbook that I'm accessing and it copies the formula from that last cell that I copied from. Problem is that I have 19 workbooks to deal with and would like to save some keystrokes.

View 4 Replies View Related

Copy, Paste, Change Font Size, Copy, Paste, Print VBA

Mar 29, 2009

I'm using 2003.

1. Copy cells B5 to V-First blank row in Strength Tests worksheet
2. Paste cells into Racks worksheet in cell C5
3. Change font size to 6
4. Sort by Column T descending then by Column C ascending
5. Copy one row (A5-W5 (1Rx23C)) from Racks worksheet
6. Paste row into M1 worksheet in cell D4
7. Print M1
8. Drop down one row on the Racks worksheet
9. Repeat steps 5-8 until there's a blank row.

View 9 Replies View Related

Copy / Paste Certain Cells Then Paste 3 Sheets Into New Workbook - VBA 1044 Error?

Feb 3, 2012

This macro works fine on my machine but not with other users:

This should copy/paste certain cells then paste 3 sheets into a new work book.

ON other computers it seems to paste in a picture? works OK for me?

Sub ValidationTests()
'
' ValidationTests Macro
' Macro recorded 21/12/2011 by '
'
Sheets("Score Sheet").Select
Range("A8:M18").Select
Range("H18").Activate
Selection.Copy

[Code] ..........

View 1 Replies View Related

Excel Macro To Copy Data From Array And Paste To Separate Sheet Paste Special Transpose

Jan 29, 2014

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?

View 1 Replies View Related

Simple Copy Sheet Paste In Other Book But Paste Values?

Jun 20, 2013

Attached is my code, pay attention to the bold part. I want the sourceSheet to be copied as a sheet and pasted in the targetSheet (the Sheet2 of "NewBook") but I want it pasted asvalues. Here is the specific part which needs to be looked at...and below is the full code.

VB:
Set sourceBook = Application.Workbooks.Open(sourceFilename)
Set sourceSheet = sourceBook.Sheets("Current")
Set targetSheet = NewBook.Sheets("Sheet2")

[Code].....

View 9 Replies View Related

Copy / Paste Every Sheet Single (P Column) And Paste To Notepad

Sep 6, 2012

copy/paste Every Sheet Single ( P Column ) and Paste to Notepad and take P1 As file name for note pad.

View 1 Replies View Related

Create Macro That Can Copy / Paste Or Cut / Paste Rows Into Different Spreadsheet

Oct 1, 2012

I have one workbook that needs two macros.

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.

View 2 Replies View Related

Copy And Paste Without Disturbing Existing Data In Paste Area

Nov 25, 2012

HTML Code:

Range Apple
A B C D E
1 2 2 4 3
2 1 3 5
3 4 6 9
4 5 3 1 3
5 7 7 7 6

Range Pear
A B C D E
4 1 3 5
5 1 1 1
6 2
7 2 2
8 5 7

Range Apple
A B C D E
1 2 2 4 3
2 1 3 5
3 4 6 9
4 5 3 1 3
5 7 7 7 6

View 2 Replies View Related

Prevent Copy / Paste Cells With Comments Or Allow Paste But Do Not Paste Comments

Feb 4, 2014

How would you prevent the copy/paste of cells that have comments?

Also, how would you allow cells with comments to be copied and pasted without pasting the comments?

I also have an aside question about the forum advanced search. When searching for multiple search words, how would you type the search to include all words, for example, "prevent" & "paste" & "comments".

View 7 Replies View Related

Copy And Paste From One Sheet To Another Based On Column A Using A Macro Copy Button

Jan 22, 2007

I want to copy and paste from one sheet to another based on column a using a macro copy button.

E.g. if column a value = apple then copy that row into the apple sheet.

View 9 Replies View Related

Copy & Paste Macro Won't Paste

Jul 10, 2006

I want this macro to find in this case "406" in column A which is at the very end of the last block of 160 rows of information.

I then want it to move up 159 rows and copy 160 rows of information underneath the last block of information.

i.e.go to A5280 , then go to a5121, copy rows 5121:5280 to 5281.

It falls over on the very last line of code I can see A5281 selected but it won't paste....

View 9 Replies View Related

Quick Way To Add Tabs

Feb 5, 2009

if there is a quick way to add any number of tabs to a spreadsheet.

ie one particular spreadsheet i need to have 32 sheets (tabs) but am getting seriously bored to right click insert worksheet time after time. there must be a quicker way?

View 6 Replies View Related

Copy/paste Macros Will Not Copy Filtered Items

Sep 25, 2009

The following sub will look in the file ("FY09 SOF"), in column "A", search for the strings that begin with "2109", "3009", or ends in "-1", and copy the entire row. It will then paste these in the file ("FY09 PR Log Blank").

I have found that in the file ("FY09 SOF"), if things are filtered in any row, it will not copy those necessary items.

The data filter is on row 13 of each sheet. Is there a way of fixing this? (i.e. having the macros select "all" on the filter before copying the sheet? There are 60 sheets so a macros will be necessary.

Sub get_data()
Dim wb As Workbook, wbDest As Workbook
Dim ws As Worksheet, wsDest As Worksheet
Dim lngCalc As Long
Dim FoundCells As Range
Dim FoundCell As Range

Set wb = Workbooks("FY09 SOF")
Set wbDest = Workbooks("FY09 PR Log Blank")
Set wsDest = wbDest.Worksheets("Paste all here, then sort")

With Application
.ScreenUpdating = False
lngCalc = .Calculation
.Calculation = xlCalculationManual
End With
For Each ws In wb.Worksheets.............................

View 9 Replies View Related

Recursion (Quick Sort)

Jul 31, 2008

I've been having a play with sorting integers in A1:I1 (because that was the example in Wikipedia). I've got some code that kind of works, but the recursion is entirely manual.

(I know it's only a mickey mouse example, and no practical use!)

Sub quicksort()
Dim iPivotIndex As Integer, iPivotValue As Integer, iTempValue As Integer, iStoreIndex As Integer, i As Integer
Dim iStartNumber As Integer, iEndNumber As Integer

'how do I give it the original iStartNumber and iEndNumber
iStartNumber = InputBox("Start")
iEndNumber = InputBox("end")........................................

View 9 Replies View Related

Quick Auto-Numbering

May 4, 2009

Auto-Numbering

just an example:-

56
57
58
59
60

The Column above is the first column on a selected sheet.

i will select 56 and from there (End-Shift+Down arrow) which selects all the values from 56-60...

My question is from here on if there is a shortcut key or 'vba macro' that can autonumber from 1.

Thus giving output result of..

1
2
3
4
5

i want to record the solution for above problem in a macro recorder for different numbers that is why i have to do (End-Shift+Down arrow)

View 9 Replies View Related

Creating A Quick Label

Oct 13, 2009

I am doing a "Lost and found" spreadsheet project for a hotel.

Each row contains the lost items with all the necessary info in separate cells (Room nr, found by, reference nr, client name, etc)

Every item is being bagged and then a label is put on it. ( has the same information but its just arranged prperly. (Like a label )

What I would like to do is to have a column in each row that has a "print" button. What would happen is that the macro would create a label in sheet2, print it on the default printer and then erase everything on sheet2. (I am kind of new to macros so I dont even know if I need to use the sheet 2 for it).

I have already done a kind of a template for the label and set it up on sheet2. I would probably manage to get the print function working with the online tutorials(if not i'll be back) but can't figure out how to do the first bit of it.

View 9 Replies View Related

Quick Replace On Many Tabs

Feb 16, 2010

I have two spreadsheets, each with about 50-60 separate worksheets in them, and each spreadsheet has simarly named tabs. I am trying to replace the values in column Q on spreadsheet 2, and move them to column O on spreadsheet 1, on each worksheet.

Is there a way to do this quickly, or will I have to copy-paste many times over?

View 8 Replies View Related

Winzip - Quick Way To Zip Up Files From Different Path

Aug 27, 2009

I have a folder that contain a list of files in shortcut type. So that i can just click it without going to different drives and paths to open those files and it really save my time.

After updating those files, i need to zip it up. There are many files to zip up and it takes time by going to its path one by one. Do you guys know is there any method to zip up those files without going to its relevant drives and paths?

View 14 Replies View Related

Quick CSE Array Formula Entry

Feb 11, 2012

I wonder if there is a way to enter my formulas as an array formula using Control-Shift-Enter in a more time saving way than one line by one line

I have 600 rows of array formulas all in column E but at different intervals with some blank rows inbetween

The formulas are in place but just need the CSE to enable the array formula { }

I am not looking forward to line by line entry.

View 1 Replies View Related

Quick General Loop Optimization

Jul 31, 2012

Let me first quickly describe the workbook setup. I have a main workbook ("Fees") that acts as a master list for every employee's clients' account numbers. Every month, 30+ workbooks get downloaded from 3rd parties that have the client account numbers, as well as their current account value.

My macro- Loops through every employee's worksheet within the Fees workbook, and loops through every account number. It then compares the account to every account in every other open workbook. Upon a match, it pulls the account value back into the main workbook. After it finishes looping the Fees workbook, it starts to loop every open workbook, and checks every account value against every account in the Fees workbook. If it doesn't find a match, it prints the value on a Missed worksheet within the Fees workbook.

The situation- I know for a fact this a verrry slow way to go about what I need to accomplish. I am very new to writing code, and gladly can take the extra minutes to let the code execute to know 100% nothing was missed. Going forward, I would like to start trimming execution time without jeopardizing the 100% accuracy of my slow macro.

The question- Based on how I execute my loops, what is likely to trim the most time for the range lookups? I have no practical experience with Vlookup, but I understand that is a possibility I should look into. I'm vaguely familiar with Match, and arrays, and I believe they could also trim time. I also realize there are probably at least 15 other ways to go about it I am not even aware of.

View 9 Replies View Related

Quick Way To Remove Duplicate Values From A ROW

Sep 12, 2013

Is there a quick way to remove duplicate values from a ROW. The "Remove Duplicates" operation under the "Data" tab only works for a column selection and not a row selection.

One approach I am thinking about, is to transpose the row into a column, run "remove duplicates" and then transpose again into a row.

View 1 Replies View Related

Quick Re-format/add Rows Using MACRO

Feb 18, 2009

create a MACRO/module that will take teh above example rows 1 thru 6 to look like rows 9 thru 30. See below ....

View 9 Replies View Related

Replace Copy VBA With Copy Paste Special Value

Jan 1, 2013

I've received an Excel file with the below macro. However, I've made changes in the original file and therefore, the macro isn't working anymore except if I copy paste special the value instead of simply copying it. I would need to change the macro accordingly.

The macro is the following :

Sub CCtosheetwithoutformat()
'
' CCtosheetwithoutformat Macro

[Code]....

View 2 Replies View Related

Quick Way To Find And Highlight Multiple Rows?

Feb 14, 2014

I have a very large spreadsheet (46,000 rows). There are a couple hundred rows I need to find and highlight, and also insert potentially-linked contract numbers in a second column.

For example:

Column 1: Column 2:
Contract # Linked Contract #
12345 67890

Is there a quick way to do this without using find and replace to highlight all several hundred of these rows? I have an hour and a half until I leave work and my boss wants it today! Compounded is the problem that there are about 100 versions of this spreadsheet I need to do this for.

View 12 Replies View Related

Quick Jump To Specific Worksheets Without Scrolling?

Apr 22, 2013

I have an Excel file that has over 50 different worksheets to track earnings from different sources in multiple categories. Each individual source has its own worksheet and I've grouped sources in the same category together and color coded the worksheet tabs so that all sheets in the same category have the same color.

The color coding visually see where one category begins and ends using the scroll bar, but is there a way to mark the first worksheet of each category and jump (or tab) to it instantly as opposed to scrolling?

For example, in the attached file, I am looking to quick jump to the following worksheets: AA, FF, GG, C, G, K, and U. Is that possible to do through any sort of bookmarking or is that a feature that doesn't exist in Excel?

View 2 Replies View Related

Search Within Range And Quick Jump To Column

May 17, 2013

I'm currently working with a largish file of about 300 columns and 40K+ rows.

1. To populate the cells, I have to find a match in column A first.define all of its entries as a range and make Excel's Find dialog box look for matches only within this range?Because right now I have to either constantly select column A before doing the search or move the cursor manually to the top cell before every search to prevent Excel from looking elsewhere... This is turning into a real drag. How to speed things up a bit?

2. After I've found a match in column A, I need to find the right column. All of them have a unique entry in the second row (B2, C2, etc.). The huge problem is there's a c..p load of these columns and identifiers aren't arranged according to any recognizable pattern. So, every time I have to do another search on row 2 to find the column I need. All of this is mind-numbingly, excruciatingly slow.

View 5 Replies View Related

VBA Formula Instead Of Countif And OR / AND To Get Quick And Light File

May 28, 2014

I attached herewith a file filled with Countif, sum, or, and. I look for a VBA to get lighter file. Because the file in fact will be filled up to 40,000 rows.

View 7 Replies View Related

Quick Code For Calculating Output Hours?

Jul 23, 2014

I have months ( 1 to 12 ). Every month, a set of tasks need to be executed which takes "x" number of hours.

So if I have 1 machine working 3 hour in the month 1, the total time spent is 3 hours. Fairly simple right !

Say on month 2, a set of tasks take 4 hours. total time that my first machine takes is 4 hours. But i want to introduce 3 new machines in this month, which will execute the first month's tasks. So total time spent here is ( 3*3 + 4*1) = 13 On month 3, task time is 6 hours. And I am introducing 2 new machines.

So total time is 2*3 ( time taken for 2 new machines to perform first month's tasks ) + 3 * 4 ( 3 new machines introduced last month will now execute second months task) + 6 * 1 ( time the first machine will spend on month 3 s tasks ) = 24

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved