Automatically moving a row of data on cell entry

I have a worksheet with several rows of data.  One of the columns has a data list of "status"es from a drop down list box.  I have conditional formatting on the rows so that when the status is "Completed", the entire row goes
to a soft grey font.  I now need to have that row automatically move to the first empty row at the bottom of the worksheet.  I know it's easy to just cut and paste it, but I'd really rather not have to do it that way.  I'd just like to be able
to select "Completed" and have the row move.  Is there a VB code that would do this?

freddb34 Vertex --
Is this a question about Microsoft Project, a project management application?  It sounds like your question is about Microsoft Excel.  If your question is about Microsoft Project, please elaborate.  If not, please consider reposting your question
in one of the Excel user forums.  Hope this helps.
Dale A. Howard [MVP]

Similar Messages

  • Help writing a excel macro to do a copy of 4 cells and paste transpose. I need to loop the copy and paste through 6900 rows of data.

      I need help writing a excelmacro to do a copy of 4 cells and paste transpose.  I need to loop the copy and paste through 6900 rows of data.  I started the macro with two rounds of copying & paster transposed but I need help getting it
    to loop through all rows.  Here is what macro looks like now.
        Range("I2:I5").Select
        Application.CutCopyMode = False
        Selection.Copy
        Range("J2").Select
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
        Range("I6:I9").Select
        Application.CutCopyMode = False
        Selection.Copy
        Range("J6").Select
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
    End Sub

    Thanks Jim for the solution above.
    Hi Brogents,
    Thanks for posting in our forum. Please note that this forum focuses on questions and feedback for Microsoft Office client. For any
    VBA/Macro related issues, I would suggest you to post in the forum of
    Excel for Developers, where you can get more experienced responses:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Auto Counting Number of Rows Where Data is Entered

    I am trying to automatically count the number of rows where data is entered.  For example, I have a table with six open rows to enter information.  If only three of those rows (A2-A4) had names entered in them, and the next three rows were left blank, can I get each name to equal the value "1" so that I can get a total tally of how many names have been entered? So the final tally in this example would be "3." I appreciate your help!
    file:///Users/josephdlugo/Desktop/Screen%20Shot%202014-04-30%20at%2011.58.28%20A M.png

    there is a function, COUNTA(), that will count the number of items that are not empty:
    C1=COUNTA(B)
    this is shorthand for select cell C1, then type, or copy and paste the formula:
    =COUNTA(B)
    The COUNTA function returns the number of its arguments that are not empty.
    COUNTA(value, value…)
    value: Any value or a collectioncontaining any values.
    value…: Optionally include one or more additional values or collections.

  • Automatic break of row in a table when content is too large to fit on one page?

    The content in some of the cells of a table is larger than the maximum space available on the page, with the result that the content at the bottom of the cell is not visible.  How do I tell Pages to automatically break the row to continue on the next page?  I also notice that Pages pushes a row to the following page when the content won't fit on the page with other rows but does so on a page of it's own.  How do I tell Pages not to do that?  I suspect it would be the same command, but I haven't found it yet.  I can do this on Word....
    I suppose I could manually cut the "offending" paragraphs and manually paste them into the next page, but I would rather have Pages do this for me as the content is being edited and so the quantity of material in cells are changing.
    I hope I am intelligible enough for you to undertand what I'm trying to do.  I'm running Pages 2009, if that matters.
    Thanks for any help you can offer.

    O,
    That's the way tables work in iWork. No option for automatic break within a cell/row. As you guessed, it's your responsibility to fix it manualy. Sometimes you can downsize the font or increase the column width to gain some room for your content. If you want constant format, you've got to do the manual breakup.
    I'll add that Tables aren't always the best container for your material. I know that it's a comfortable look and feel, but when a row takes up a whole page, it may be time to rethink the design.
    Jerry

  • How to determine the number of rows of data in a datatable?

    I have a datatable that I fill from an SQL query.  I do not know exactly how many rows of data it will return (due to my selection criteria) but will be somewhere between 100 and 300 rows.  I send this data into a report but need to determine the length of the report (panel height data member) programatically based on how much data the query has returned.  So, I need a way to count how many rows are filled in the data table.
    I tried doing a nested "if" statement checking the value of each cell but when I tested the expression at 59 "if" statements (will need 300+) I got a parser error in lookout when I tried to accept the connection.  I also tried a type of loop by assigning cursor.2 either to its own value (circular) or to its own value plus one depending on the value of the cell at cursor.2.  It was close but overshot by one row or more (much more sometimes).
    Any clever ideas?  Perhaps I have just been looking at this problem too long.  Thanks, in advance, for your help.

    Since the datatable gets the data from the SQL query, you can also use the SQL statement to count the number of rows in the query result.  
    For example, in datatable you do "select localtime, trace1 from intdata where xxx". You can get the count by "select count(trace1) from intdata where xxx". Use the same condition in order to get the same number of rows.
    Maybe another SQLExec object is needed to do the count.
    Whenever the datatable executes the SQL, the SQLExec executes and return the count.
    Ryan Shi
    National Instruments

  • How do I make numbers automatically insert date of table entry?

    Hi, I am monitoring time spent on a computer, so every time I log a time on my table in numbers I want it to automatically insert the date of that entry in the next column, I do not know how to do this,
    I hope someone can help me resolve this issue,
    Sincerely,
    Henri

    Hi Henri,
    There is no way to have an automatic time stamp in Numbers. Once you double click on a cell you can go to Menu>Insert>Date & Time and get a time samp that way.
    quinn

  • Why do i get 2 curves and not just 1 when i create a diagram from a row of data in a table ?

    Why do I get 2 curves and not just i when I create a diagram from a row af data in a table ?

    Erik,
    Thank you for giving me the points.  Generally you wait to award points until your problem is solved.  It is totally your at your descretion.
    OK.
    This is still not clear.  To post a screenshot get the "stuff" you want to show in view on your screen, then type the key combination <Command>+<Shift>+3.  The cursor will change to a crosshair.  Click and hold on the top-left corner, then drag to enclose what you want to show (to the bottom-right corner), then release.  The screenshot will appear on your desktop and will be named something like "".
    Now click the camera icon in the tool bar for this forum:
    , click the text box to allow you to navigate to, and select your screenshot.
    Here is what you sent me:
    The graph does not seem to be associated with the table of data you are showing.  Generally when you highlight a graph the corresponding table will highlight and show the source of each of the series in the graph (dark and light blue).
    This is what I would expect to see when highlighting a graph:
    Right now I think there is ANOTHER table arround that is the source for the graph and the table you show is "just another table".  You can move your data into the table the graph refers to by copy and paste, or simply typing the values.  You can change how many series there are by grabbing the little circle at the bottom right of the highlighted cells (when you have the graph highlighted) and dragging as shown:
    The Numbers Users' Guide is a great resource you should utilize and can be found here:
    http://support.apple.com/manuals#macosandsoftware
    The chapter on graphing (or charting) is 7 and starts on page 134.

  • Formatting header rows in data form in hyperion planning

    Hello Friends,
    I want to format header rows in data form in hyperion planning (formatting like Bold, Italic etc...) Is there any way to do that?

    I could be wrong. That's why i thought i should post this one.
    This is from 11.1.2.2.300 readme
    Customizing the Style of Header Cells in Forms
    Applying a bold style to all forms
    1.  From HyperionPlanning.war\custom, open HspCustom.css and insert this class code:
    customheaderStyle
    Font-family:<font>;
    Font-size:<size>;
    Font-weight:bold;
    For example, to use bolded garamond 14 as the style for header cells you would specify:
    customheaderStyle
    Font-family:garamond;
    Font-size:14;
    Font-weight:bold;
    You can also change the font and the font size in the same portion of code.
    Perform the tasks in "Registering Customized Skins in Applications".
    Applying a bold style to one form
    Determine the ID of the form to customize by running this query in which ‘<FORM_NAME’ is the name of the form:
    Select object_id AS FORM_ID,object_name AS FORM_NAME from hsp_object 
    where object_name like ‘<FORM_NAME>’
    For example, to modify a form called "1.30 Per Payor – Metrics”, you would run this query:
    Select object_id AS FORM_ID,object_name AS FORM_NAME from hsp_object where object_name like "1.30 Per Payor-Metrics"
    When the ID is returned, create a css class in HspCustom.css using the following format.  HspCustom.css is in HyperionPlanning.war\custom.
    “customheaderStyle_<FORM_ID>”
    Set font-weight in .customheaderStyle as bold as shown below. You can also change the font and the font size in the same portion of code.
    customheaderStyle
    Font-family:<font>;
    Font-size:<size>;
    Font-weight:bold;
    To use different styles on individual forms, create a css class for each form.
    so there is a way to create custom headers
    Regards
    Celvin
    http://www.orahyplabs.com

  • Easy way for group moving multiple rows to insert under new row?

    Hi All.
    I have been trying to find a way that will let me move - say - 20 rows (#'s 105 - 125) each with 15 columns to a space that fits under an existing column that may be further up - say - row 5. I would like to do this in a way that does not require my creating 20 rows under row 5 in order for there to be more space between row 5 that has data in it and row 6 or 7 that may have data in it.
    Right now I am creating a row, creating another row, multiple selecting these two rows and hitting down arrow to create new rows two by two ten times.
    I have a case now where I would like to start moving organized pieces of information around that have 40 to 100 rows of data and it is becoming increasingly inconvenient to have to do this.
    Thanks for any tips, tricks, pointers etc.

    Jon,
    This takes some patience and some practice.
    Click on the first Row label and Shift-Click on the last Row Label of the range of rows you want to move.
    Now you have a large selection. Here comes the delicate part that may take some practice. Make sure your work is saved before you begin practicing. Read these instructions thoroughly before you begin.
    Hover over a label in the selected range of rows. Click and drag to the left, pulling the selected rows off the main table. Hold on to the mouse switch and don't let go yet. Now move the selection that you have a hold of back over the main table and watch the horizontal lines that separate the rows. You will find that double lines appear under the cursor. This indicates where your selection will be inserted if you let go right now. Move your pointer up or down the table until you come to where you want your selection to go and then release the mouse.
    Jerry

  • Date stamp for cell entry

    Hi, just reading the manuals for applescript but need some help. We have just changed from xl in windows to numbers and osx. One of the spreadsheets our admin used had a row where every time she added a new numerical value the cell above it would stamp the date of the entry. I have read through some old posts and it seems to be suggested that the only way is to "copy and paste" from, i guess, a cell containing the current date using applescript. Could someone give me a helpful nudge? I have only started looking at applescript today so its all a bit new.Either a point towards the appropriate tutorial or an example script would be great.
    Thanks
    rob

    Here is a version in which the Help part was a bit enhanced.
    --[SCRIPT storestring_anddate]
    Enregistrer le script en tant que Script : storestring_anddate.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Placez le curseur dans la cellule que vous souhaitez alimenter.
    aller au menu Scripts , choisir Numbers puis choisir storestring_anddate
    La cellule pointée reçoit la chaîne saisie
    La cellule située à sa droite reçoit la date_heure de l'intervention.
    Si la chaîne saisie est vide, les deux cellules sont vidées.
    Il est possible de modifier le comportement du script en éditant les properties.
    Avec
    property offsetVertical : -1
    property offsetHorizontal : 0
    la date sera placée dans la cellule qui est juste au-dessus de la valeur insérée.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script : storestring_anddate.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Put the cursor in the cell which must receive your entry.
    go to the Scripts Menu, choose Numbers, then choose storestring_anddate
    The pointed cell receives the entered string.
    The cell on its right receive the current date_time.
    If the entered string is empty, the two cells are cleared.
    We may change the script behavior thru some edit of the properties.
    With
    property offsetVertical : -1
    property offsetHorizontal : 0
    the date will be stored just above the inserted value.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (Vallauris, FRANCE)
    2009/02/16
    2011/01/07
    2011/01/29 added some comments in the help.
    property theApp : "Numbers"
    property offsetVertical : 0
    property offsetHorizontal : 1
    --=====
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    if rowNum2 > rowNum1 then set offsetVertical to rowNum2 - rowNum1
    if colNum2 > colNum1 then set offsetHorizontal to colNum2 - colNum1
    tell application (path to frontmost application as string)
    if my parleAnglais() then
    set rate to text returned of (display dialog "Cell's contents" default answer "blabla bla")
    else
    set rate to text returned of (display dialog "Contenu de la cellule…" default answer "blabla bla")
    end if
    end tell
    my doYourDuty(rowNum1, colNum1, dName, sName, tName, rate)
    end run
    --=====
    on doYourDuty(r, c, d, s, t, txt) (*
    r = rowIndex
    c = columnIndex
    d = document's name
    s = sheet's name
    t = table's name
    txt = new cell's contents *)
    local cdt, r_date, c_date
    set cdt to my cleanThisDate(current date) (* the new date_time as a clean date_time *)
    tell application "Numbers" to tell document d to tell sheet s to tell table t
    set r_date to r + offsetVertical
    set c_date to c + offsetHorizontal
    if r_date > row count then
    repeat (r_date - row count) times
    add row below row -1
    end repeat
    end if
    if c_date > column count then
    repeat (c_date - column count) times
    add column after column -1
    end repeat
    end if
    if txt is "" then
    clear cell r of column c
    clear cell r_date of column c_date
    else
    set value of cell r of column c to txt
    set value of cell r_date of column c_date to (cdt as text)
    end if
    end tell -- application …
    end doYourDuty
    --=====
    on cleanThisDate(dt)
    (* ugly code but once I got date_time with milliseconds so if necessary, I drop them *)
    local l
    set l to my decoupe(dt as text, ":")
    if (count of l) = 4 then
    set dt to date (my recolle(items 1 thru 3 of l, ":"))
    end if
    return dt
    end cleanThisDate
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) samedi 29 janvier 2011 16:35:59

  • How to read data from cell of table indicator?

    In my application, I've filled the table indicator with data from  database. Now I want, when I click on any particular row, I should be able to read data from that row.
    Thanks & Regards,
    Shrinivas
    Solved!
    Go to Solution.

    Hi Shrinivas,
    you can use "Selection Start" property node in a click-event to fnd out the row index of selected cell and retrieve the appropriate row from it.
    Message Edited by My NI on 08-05-2009 09:04 AM
    Regards
    MY
    Attachments:
    Example.vi ‏10 KB

  • Anchoring a simple calculation to a moving end row

    I have a very simple spreadsheet that was initially created from a template on an iPad that I transfer back and forth to a Mac Book Pro. I happy to edit it on either device.
    The spreadsheet tracks my weight loss so column 1 is a date with start date in row 1 and column 2 is my weight in pounds. I have a footer row where I want to show the weight loss. So the very simple formula is to subtract the weight in the last added row from the weight in the first row. I don't want to sum all the weights or take any averages. I just want to subract (hopefully subtract!!) the recent weight from the first weight.
    I originally created the foruma on the iPad where the formula uses relative cells by default. That seemed to me to be the best choice for the recent weight and I assumed the first weight did not matter if it was relative or absolute.
    I add a new weight each day on the ipad using an auto created form. I auto-create it each time I transfer back from the mac (not every day).
    I think you can guess what's coming! Each time a new row is added, the formula stays achored to the row when I last set up the formula. So the formular is not changing its limits (end row) each time I add a row. I tried selecting absolute as well as relative but it made no difference.
    Can anyone please tell me how to achieve what should be simple?
    I have a similar question about a chart based on this spreadsheet. Each time a new row is added to the spreadsheet, I have to manually select the chart and change the column selection in the spreadsheet (drag down the last row outline) to get the chart to update to show the new row of data.
    Thanks
    John.

    John,
    Noble effort. You can get Numbers to act the way you wish. Here's an example:
    I used a Scatter Chart to display the trend. Symbols set to None and using Straight connecting lines between points.
    The expression for weight loss in the Footer is:
    =LOOKUP(MIN(A), A, B)-LOOKUP(MAX(A), A, B)
    The expression will always subtract the latest weight from the oldest weight.
    To get the chart to adjust to added rows is easy. Select the row of the last data point and add a row by pressing Option-DownArrow. This inserts a blank row in the Chart's data range in the table.
    Jerry

  • Data load cells vs lines on database

    Hi,
    Just a question : Which is the difference between the number of lines in a table on database and the result of a dataload cells in essbase on this table ? How to know how many lines on the table have been loaded in essbase? How to quantify this?
    Thanks for your help,
    Jeremy

    you can't relate the two. Depending on how it is formatted, a single row of data could be loading 1 or many blocks. In addition, multiple rows of input data could be affecting a single block of data(which is often the case)

  • Copy a certain row of data into the next row in a same internal table ??

    HI, guys.
    May i know how to copy a certain row of data into the next row in a same internal table ?? Bcz I plan to update a certain colum of data in the row just now into another value..
    For example:-
    *at first...
    ebeln1   ebelp1   xblnr1
    ebeln2   ebelp2   xblnr2
    ebeln3   ebelp3   xblnr3
    *after that, become...
    ebeln1   ebelp1   xblnr1
    ebeln2   ebelp2   xblnr2
    ebeln2   ebelp2   xblnr4
    ebeln2   ebelp2   xblnr5
    ebeln3   ebelp3   xblnr3
    Thanks in advance.

    hi,
    If you have this kind of requirement then you must be having 2 internal tables ,one existing data and 2nd from which you have to insert the records into 1st table.
    so in this case,
    loop at itab1.
      v_index = sy-tabix.
      loop at itab2 into wa where pri_key = itab1-pri_key.
      v_index = v_index + 1.
      insert  wa into itab index v_index.
      endloop.
    endloop.
    Using this code ,your data records similar to your 1st tables primary key records will get inserted into table.

  • The session getattributes lost one row of data in the html input table

    Deal all,
    I have input three rows of data in a html table. But I found
    the last row will disappear and lost when it return the data to
    backend. I think that maybe caused there is an error checking which
    prompts an error and after that , I change the value of the last(3rd)
    row and try to save it. The last row disappear in the UI and being not
    sent to the back end. Here is my code of the JSP
    RosterCodeSetupCommand rosterCodeSetupCommand =
    (RosterCodeSetupCommand)request.getSession().getAttribute("rosterCodeSetupCommand");
    int cmd = rosterCodeSetupCommand.getCmd();
    int pageNo = rosterCodeSetupCommand.getPageNo();
    EtWorkTime etWorkTime = rosterCodeSetupCommand.getEtWorkTime();
    List policyList = rosterCodeSetupCommand.getPolicyList();
    As you can see, the EtWorkTime is get from the rosterCodeSetupCommand.
    Usually, the rosterCodeSetupCommand will have all the rows in the
    table. But now in EtWorkTime, I found last row data is lost.
    And in the UI, when I press Save, the last row is disappear. So I
    guess the problem is happened in
    request.getSession().getAttribute("rosterCodeSetupCommand"); But I
    can't figure out what can make the last row lost in this sentence.
    Would you mind to give me some hints on what will make this happen and
    I will try to trace the code by myself. Thanks.

    Hi,
    I am not sure are you using spring framework or what. if yes you can populate data in command object in referenceData method of simpleformcontroller and that data will be available to the UI.

Maybe you are looking for

  • How to create an excel spreadsheet?

    Hello, Im interested how to create the *.xls file with NI Library. I cant find the right function. Usually, Im using following code (ODBC): CDatabase database;   CString sDriver = "MICROSOFT EXCEL DRIVER (*.XLS)"; // exactly the same name as in the O

  • WIndow scrolling and refresh issues.

    I am having problems with intermittent window scrolling and refreshing. I noticed it first in Safari but I have confirmed it is happening in other applications as well. Typically I have no problems with window scrolling and refreshing. At times howev

  • ORA-03134: Connections to this server version are no longer supported.

    I have this error when trying to connect using Oracle DS 10.1.2.0.2 which comes with Oracle Net 10.1.0.4.2 to a 8.1.7.0.0 database. I can use Oracle DB 10g 10.2.0.1.0 bundle with Oracle Net 10.2.0.0.0 to connect to 8.1.7.0.0 database Anyone knows how

  • Ipod touch syncing in iTunes

    I sync my iPod Touch (1st Gen) in iTunes and when it's disconnected all of the content is gone. This just started recently. I did a restore and reloaded all of the contents but everything disappeared again after I synced. The apps remain but the musi

  • Users are blocked from filling out online form

    I purchased the initial package that allows 500 responses to an online form/month.  We've received 5 responses and subsequent applicants have told us they are blocked from completing it.