Results 1 to 8 of 8

having macro move down to next row

Threaded View

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    illinois
    MS-Off Ver
    2013
    Posts
    4

    having macro move down to next row

    Hey all!
    I am a macro/vba noob in these parts. Some of my work colleagues have been trying to figure out a macro that will allow us to move down to the next row and capture the data successfully. Right now, we are manual changing the range/criteria1 row by row. How could we configure this to automatically go to the next row of data?

    Edit: I attached the workbook. the macro tab, in H3 is our wanted output. However as you can see in the MacroEquation tab and the actual macro, we are manually changing the cirteria1 from sheet CMS NY 2016 column A. How could we modify this marco to reproduce our output in h3 for all of the remaining rows? instead of hacing to change for each row/criteria?

    Windows("FY16CMSMetrics.xlsx").Activate
    Range("A2:A2261").Select
    Range("A2261").Activate
    ActiveCell.FormulaR1C1 = "360084"
    Windows("FY16MedicareImpactMetricsMACRO.xlsm").Activate
    ActiveSheet.Range("$A$1:$Z$3448").AutoFilter Field:=1, Criteria1:="360084"
    Range("C2260:X2260").Select
    Selection.Copy
    Sheets("Macro Equation").Select
    Range("B6").Select
    Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=True
    Range("D3").Select
    Range(Selection, Selection.End(xlDown)).Select
    Application.CutCopyMode = False
    Selection.Copy
    Range("E3").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Range("G3").Select
    End Sub
    Attached Files Attached Files
    Last edited by menbanx88; 08-26-2016 at 01:33 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro to Move Rows to New Worksheets Based on Criteria & Then HIDE & Move Back
    By abro0821 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2014, 04:00 PM
  2. Macro to move code to cell, print, then move down the list to the next code
    By MilesDeep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2014, 04:59 PM
  3. Create Macro to move values from the current sheet in which the macro is activated
    By Turkish1801 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2013, 06:11 PM
  4. [SOLVED] Macros To Move Multiple Rows To Another Sheet And Macro To Move Single Rows To DAX Table
    By jcaynes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2013, 05:08 PM
  5. Macro to move a shape once and move it back again on sequential presses.
    By ynot2010 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-14-2010, 07:05 AM
  6. How to click macro - Move right 15 cells - Next click move back to home position
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-05-2010, 10:47 PM
  7. Replies: 1
    Last Post: 07-14-2008, 03:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1