October 30, 2018
Hi help needed please
I want to be able to copy a whole row from sheet 1 to sheet 2 if a cell say D5 meets my criteria of 'Starter' then it copies that whole row in to sheet 2. But there might be 5 or more rows with Starter in D6, D7 etc and I want all of them as well to go on sheet 2. Can this be done if so how please?
I have put a mock up of sheet 1 below and want to copy all the ones that have Starter in column D to sheet 2 dynamically.
Any help appreciated.
Can I also ask is there a way of saving a worksheet as an image as only found on web either print screen or copy the worksheet and paste into Photoshop?
A | B | C | D | E | F |
ID | Name | No | Type | Loc | Start date |
101 | Fred | 2 | Starter | HR | Jul-19 |
102 | Pam | 3 | Starter | HR | Aug-19 |
103 | Peter | 4 | Leaver | BBC | Jun-19 |
104 | John | 5 | Transfer | Comms | Sep-19 |
105 | Alice | 6 | Starter | Comms | Jul-19 |
VIP
April 21, 2015
Hi David. I think this can be done by VBA, but that's not my cup of tea. Seeing your example I was thinking about a pivot table and then make a report which you can share to other sheets by for instance the type. It's a bit a work around, so maybe some VBA guy here can help you with that part. Otherwise I can try something with your data and explain that to you, if you like the idea?
About your second question: you can select a part of a sheet (or all the data on a sheet) copy that and paste it as an image. It depends on how much columns and rows you select if it stays visible in other programms. You can try it out by selecting some columns and rows, copy them, then choose paste as and look for the image symbol.
Good luck!
Frans
July 16, 2010
Hi David,
Frans is right, a PivotTable is the best tool for this. It's robust, dynamic and requires zero coding!
See file attached. Here is a PivotTable tutorial explaining how you can also extract the different 'type' data to separate sheets, if that's a future need.
Mynda
October 30, 2018
Hi Mynda
Thanks for that but I want it to copy the rows with a certain word, in this case Starter,included in one of the cells in the row.
The one from Rob does exactly what I need but would like to know the coding he has done to get it to work so if needed I could amend it if needed plus I would know exactly what it is doing.
Great website by the way loads of useful stuff.
Thanks
Dave
October 30, 2018
Robert Smith said
Hi DavidThis routine attached will copy data from sheet1 to sheet2
You can use partial search as well in the input box on the user form
Have you tried the camera operation to copy the screen ?
Rob
Hi Rob,
Can you let me know what code you have used for this so I know exactly what it is doing and I can tweak it if needed?
I know wnothing about the Camera operation I will search it in Excel.
Thanks for your help it does what I need but code would be good as I cannot see the macro.
Dave
June 12, 2019
Hi David
To get to the code right click on worksheet tab and select view code
Click on UF1 and click on command button to see code for it
The sub is Private so nobody can run the routine from the Macro menu
The function "FindAll" is located in Module 1, i would advise not to change anything in this code for the function otherwise it will screw up as this is the bit that finds all the data.
The code behind Command button you can amend as long as you have some VBA knowledge, if you need any help just let me know ok
PS on holiday from 20th to 30th so you might not get a reply till after that
Regards
Rob
1 Guest(s)