On Friday, April 27, 2018 at 12:46:20 AM UTC-7, KAUSHIK SAVLA wrote:
>
> Hi Team,
>
> Need your help in creating macro which would do following:-
>
> 1. To delete whole data in Sheet C
> 2. Copy whole data of Sheet B and paste it in Sheet C
> 3. Go to the Sheet A. Filter for "Current" in Column B
> 4. Copy the visible data of Step 3 and paste it in Sheet B
> 5. Now in Column C need formula to compare if the data as per Sheet A was 
> appearing in Sheet C, then formula to give "Existing". Otherwise "Addition" 
> in case of New.
> 6. There would be some data already in Sheet D. Now what I want is copy 
> the visible data of Sheet A and Paste it at the bottom of the data of Sheet 
> D 
> (Kindly note there is no specific range eg say not always data will be 
> till Row 100 sometime may be less and vice versa)
> 7. Go to Sheet E, delete whole data
> 8. Go to Sheet F, delete whole data
> 9. Now Filter for "Prior" in Column B of Sheet D. Copy the visible data 
> from Column A to AO and paste the same in Sheet F
> 10.Now Filter for "Current" in Column B of Sheet D. Copy the visible data 
> from Column A to AO and paste the same in Sheet F
> 11. Refresh the formulas of whole workbook
>
> Attached is the sample file for reference
>
> Thanks,
> Kaushik Savla
>


Here is part of what you want, but would need more info to complete the 
next the next step. Thanks, David
 
Sub Savla()
  Sheets("C").Cells.ClearContents
  Sheets("B").Select
  Range("A1").Select
  Selection.CurrentRegion.Select
  Selection.Copy
  Sheets("C").Select
  Range("A1").Select
  ActiveSheet.Paste
End Sub

Thanks, David

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to