+ Reply to Thread
Results 1 to 7 of 7

Display a row if a cell value is greater than zero

  1. #1
    Anne Troy
    Guest

    Re: Display a row if a cell value is greater than zero

    Try this method instead, vmerrill:
    http://www.officearticles.com/tutori...soft_excel.htm
    *******************
    ~Anne Troy

    www.OfficeArticles.com


    "vmerrill" <[email protected]> wrote in message
    news:[email protected]...
    > I work for a small laundry equipment distributor. I would like to have a
    > sales order that is "automated" on the following basis (or a more elegant
    > way):
    >
    > To create a sales order, open the blank sales order workbook. Go to the

    data
    > input sheet. This sheet would be a list of all equipment we sell with a

    row
    > dedicated to each equipment item. The first cell of that row would be a

    blank
    > cell that will contain the number of items to be ordered. The second cell

    of
    > that row would be the manufacturer of that item.The third cell of that row
    > would be the model number of that item. The fourth cell of that row would

    be
    > a description of the item. If you enter a number in the first cell that
    > denotes the number of items to be ordered, then that row will appear in a
    > second sheet that is the actual sales order.
    >
    > Can any one help me with this please!




  2. #2
    L. Howard Kittle
    Guest

    Re: Display a row if a cell value is greater than zero

    Hi Vmerril,

    Try something like this change event macro.
    Assumes the quanity will be entered in column A and there is a worksheet
    named Order Sheet.

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Column <> 1 Then Exit Sub

    If MsgBox(prompt:=" Post to Order Sheet?", _
    Buttons:=vbYesNo, _
    Title:="Poster") = vbYes Then
    Target.Resize(1, 4).Copy _
    Sheets("Order Sheet").Range("A100") _
    .End(xlUp).Offset(1, 0)

    ElseIf vbNo Then
    Exit Sub

    End If
    End Sub

    HTH
    Regards,
    Howard

    "vmerrill" <[email protected]> wrote in message
    news:[email protected]...
    >I work for a small laundry equipment distributor. I would like to have a
    > sales order that is "automated" on the following basis (or a more elegant
    > way):
    >
    > To create a sales order, open the blank sales order workbook. Go to the
    > data
    > input sheet. This sheet would be a list of all equipment we sell with a
    > row
    > dedicated to each equipment item. The first cell of that row would be a
    > blank
    > cell that will contain the number of items to be ordered. The second cell
    > of
    > that row would be the manufacturer of that item.The third cell of that row
    > would be the model number of that item. The fourth cell of that row would
    > be
    > a description of the item. If you enter a number in the first cell that
    > denotes the number of items to be ordered, then that row will appear in a
    > second sheet that is the actual sales order.
    >
    > Can any one help me with this please!




  3. #3
    Anne Troy
    Guest

    Re: Display a row if a cell value is greater than zero

    Try this method instead, vmerrill:
    http://www.officearticles.com/tutori...soft_excel.htm
    *******************
    ~Anne Troy

    www.OfficeArticles.com


    "vmerrill" <[email protected]> wrote in message
    news:[email protected]...
    > I work for a small laundry equipment distributor. I would like to have a
    > sales order that is "automated" on the following basis (or a more elegant
    > way):
    >
    > To create a sales order, open the blank sales order workbook. Go to the

    data
    > input sheet. This sheet would be a list of all equipment we sell with a

    row
    > dedicated to each equipment item. The first cell of that row would be a

    blank
    > cell that will contain the number of items to be ordered. The second cell

    of
    > that row would be the manufacturer of that item.The third cell of that row
    > would be the model number of that item. The fourth cell of that row would

    be
    > a description of the item. If you enter a number in the first cell that
    > denotes the number of items to be ordered, then that row will appear in a
    > second sheet that is the actual sales order.
    >
    > Can any one help me with this please!




  4. #4
    L. Howard Kittle
    Guest

    Re: Display a row if a cell value is greater than zero

    Hi Vmerril,

    Try something like this change event macro.
    Assumes the quanity will be entered in column A and there is a worksheet
    named Order Sheet.

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Column <> 1 Then Exit Sub

    If MsgBox(prompt:=" Post to Order Sheet?", _
    Buttons:=vbYesNo, _
    Title:="Poster") = vbYes Then
    Target.Resize(1, 4).Copy _
    Sheets("Order Sheet").Range("A100") _
    .End(xlUp).Offset(1, 0)

    ElseIf vbNo Then
    Exit Sub

    End If
    End Sub

    HTH
    Regards,
    Howard

    "vmerrill" <[email protected]> wrote in message
    news:[email protected]...
    >I work for a small laundry equipment distributor. I would like to have a
    > sales order that is "automated" on the following basis (or a more elegant
    > way):
    >
    > To create a sales order, open the blank sales order workbook. Go to the
    > data
    > input sheet. This sheet would be a list of all equipment we sell with a
    > row
    > dedicated to each equipment item. The first cell of that row would be a
    > blank
    > cell that will contain the number of items to be ordered. The second cell
    > of
    > that row would be the manufacturer of that item.The third cell of that row
    > would be the model number of that item. The fourth cell of that row would
    > be
    > a description of the item. If you enter a number in the first cell that
    > denotes the number of items to be ordered, then that row will appear in a
    > second sheet that is the actual sales order.
    >
    > Can any one help me with this please!




  5. #5
    vmerrill
    Guest

    Display a row if a cell value is greater than zero

    I work for a small laundry equipment distributor. I would like to have a
    sales order that is "automated" on the following basis (or a more elegant
    way):

    To create a sales order, open the blank sales order workbook. Go to the data
    input sheet. This sheet would be a list of all equipment we sell with a row
    dedicated to each equipment item. The first cell of that row would be a blank
    cell that will contain the number of items to be ordered. The second cell of
    that row would be the manufacturer of that item.The third cell of that row
    would be the model number of that item. The fourth cell of that row would be
    a description of the item. If you enter a number in the first cell that
    denotes the number of items to be ordered, then that row will appear in a
    second sheet that is the actual sales order.

    Can any one help me with this please!

  6. #6
    Anne Troy
    Guest

    Re: Display a row if a cell value is greater than zero

    Try this method instead, vmerrill:
    http://www.officearticles.com/tutori...soft_excel.htm
    *******************
    ~Anne Troy

    www.OfficeArticles.com


    "vmerrill" <[email protected]> wrote in message
    news:[email protected]...
    > I work for a small laundry equipment distributor. I would like to have a
    > sales order that is "automated" on the following basis (or a more elegant
    > way):
    >
    > To create a sales order, open the blank sales order workbook. Go to the

    data
    > input sheet. This sheet would be a list of all equipment we sell with a

    row
    > dedicated to each equipment item. The first cell of that row would be a

    blank
    > cell that will contain the number of items to be ordered. The second cell

    of
    > that row would be the manufacturer of that item.The third cell of that row
    > would be the model number of that item. The fourth cell of that row would

    be
    > a description of the item. If you enter a number in the first cell that
    > denotes the number of items to be ordered, then that row will appear in a
    > second sheet that is the actual sales order.
    >
    > Can any one help me with this please!




  7. #7
    L. Howard Kittle
    Guest

    Re: Display a row if a cell value is greater than zero

    Hi Vmerril,

    Try something like this change event macro.
    Assumes the quanity will be entered in column A and there is a worksheet
    named Order Sheet.

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Column <> 1 Then Exit Sub

    If MsgBox(prompt:=" Post to Order Sheet?", _
    Buttons:=vbYesNo, _
    Title:="Poster") = vbYes Then
    Target.Resize(1, 4).Copy _
    Sheets("Order Sheet").Range("A100") _
    .End(xlUp).Offset(1, 0)

    ElseIf vbNo Then
    Exit Sub

    End If
    End Sub

    HTH
    Regards,
    Howard

    "vmerrill" <[email protected]> wrote in message
    news:[email protected]...
    >I work for a small laundry equipment distributor. I would like to have a
    > sales order that is "automated" on the following basis (or a more elegant
    > way):
    >
    > To create a sales order, open the blank sales order workbook. Go to the
    > data
    > input sheet. This sheet would be a list of all equipment we sell with a
    > row
    > dedicated to each equipment item. The first cell of that row would be a
    > blank
    > cell that will contain the number of items to be ordered. The second cell
    > of
    > that row would be the manufacturer of that item.The third cell of that row
    > would be the model number of that item. The fourth cell of that row would
    > be
    > a description of the item. If you enter a number in the first cell that
    > denotes the number of items to be ordered, then that row will appear in a
    > second sheet that is the actual sales order.
    >
    > Can any one help me with this please!




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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