+ Reply to Thread
Results 1 to 3 of 3

Select (one) Row where a column has a value in it. Paste one row below it.

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Select (one) Row where a column has a value in it. Paste one row below it.

    Report Template ver 59.xlsm

    Hi guys! Im very new to macro programming, and only know how to do macro recording and there are many things that cant be done with recording.

    But its nice to have a working practical example, to try to apply it in my job. An example would be in my attachment. the ultimate aim is to save time. Hence, when a company releases their results, I will update the sheet "Data1" and "Data2" which will be linked to a data provider, and in-house analysis.

    So what im trying to do is the following.
    - There will be two buttons in the first sheet. One says "Result Update". One says "Company Update"

    if i click company update, a HELLO WORLD popup will happen (ill replace this once i learn how to write the macro)

    if i click Result Update the following will happen
    - In Sheet Table 2, Cell E4, Choose the cell, add one to any number existing in this cell replace it. (eg: if its 21, it becomes 22)
    // the above cant be done in recording mode, because recording cant recognise a number in order to add+1 to it.

    - Once the above is completed go to Output Sheet. Find the bottom most row in column T which has a content (lets name this row X). Select the entire row row X. Copy row X. Select the entire row below the row below row X (row X+1). Insert copied cells.

    // this operation will create a new line of dates. in the attachment, lowest column T with content is row 151. so copy the entire
    // column and paste on the column below it, effectively creating a new row, and "extending" the VLOOKUP.
    // I cant do this because recording cannot "find the bottom most row where column T has a content"

    - Once the above is completed, In Sheet Output (same sheet) Copy Cell V136 to AB136. Paste Values in V(row X+1) to AB(row X+1)

    // this will paste values the latest numbers to the new line added.
    // I think i can do this with record macro. but i will have trouble combining.

    - Once the above is completed... do the following in this order
    - Go to Sheet Writeup, Unhide Row 14-17, Unhide Row 38-39
    - Go to Sheet Output, Replace H2 with "Quarter Result Update"
    - Go to Sheet Output, Replace Cell T133 with "today()" <-- today's date

    // this set i can do with record macro

  2. #2
    Registered User
    Join Date
    11-19-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Select (one) Row where a column has a value in it. Paste one row below it.

    Wow. tons of things i can learn from this web from the quick links!!

    Please Login or Register  to view this content.
    Last edited by saturos; 12-05-2013 at 02:16 AM. Reason: code tags

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,525

    Re: Select (one) Row where a column has a value in it. Paste one row below it.

    Indeed, many things to learn from Excel Forums.
    Another thing everyone should learn is #3 in the "Forum Rules". How to use code tags.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Select the last row in a column with data nd paste the value in the rest of the column
    By Sheldon Brooks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 05:33 AM
  2. VBA - Paste / Select Column / Currency / format
    By rik1313 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-09-2012, 04:49 AM
  3. VB help SELECT COLUMN / PASTE FORMULA'S
    By XL XL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2010, 09:14 AM
  4. Finding last cell in a column, select, copy/paste
    By GaretJjax in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-16-2008, 05:17 PM
  5. Select empty column & paste - Help please
    By saziz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2005, 02:55 PM

Tags for this Thread

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