Results 1 to 5 of 5

Thread: Create Invoice From Flat Data Range

Threaded View

johnreid7477 Create Invoice From Flat Data... 05-31-2013, 07:58 PM
Excel Fox johnreid, can you clarify... 05-31-2013, 09:48 PM
johnreid7477 Hi Excelfox, Ignore my... 06-01-2013, 04:43 PM
Excel Fox Missed this one john reid,... 08-18-2013, 05:09 PM
johnreid7477 Thanks all solved 08-19-2013, 11:41 AM
Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Rep Power
    0

    Create Invoice From Flat Data Range

    Hi Excelfox,

    My first thread sorry if make mistake or confusing.

    My question 1 : If input 4 "item" (4 cells) in Description automatic "invoice & date" will be auto copy / create same 4 in cells.
    My question 2 : How input next item, type, rate in next cells (because my first VBA only single cells), i don't understand to combine ...

    ================================================== ==
    Example Userform VBA
    ================================================== ==
    Invoice : 0001/SM/06/13
    Date : 01 June 2013
    Description :
    Item Type Rate
    ITEM1 HOT $ 1
    ITEM2 HOT $ 1
    ITEM3 HOT $ 1
    ITEM4 SPECIAL $ 5
    ================================================== ==
    ================================================== ==

    Example Result code if working
    B C L K M
    1 Invoice Date Item Type Rate
    2 0001/SM/06/13 01 June 2013 ITEM1 HOT $ 1
    3 0001/SM/06/13 01 June 2013 ITEM2 HOT $ 1
    4 0001/SM/06/13 01 June 2013 ITEM3 HOT $ 1
    5 0001/SM/06/13 01 June 2013 ITEM4 SPECIAL $ 5

    My single cell code. I'm not input (item2,item3,item4, type2,type3,typ4, rate2,rate,3,rate4) because confusing must use cells ..or Ws.... and ...
    Code:
    Private Sub buttonnew_Click()
    Dim RowCount As Long
    Dim benefits, total As Single
    'copy the data to the database
    RowCount = Worksheets("Database").Range("B1").CurrentRegion.Rows.Count
    With Worksheets("Database").Range("B1")
        .Offset(RowCount, 0) = Me.invoice.Value
        .Offset(RowCount, 1) = Me.date.Value
        .Offset(RowCount, 11) = Me.item1.Value
        .Offset(RowCount, 10) = Me.type.Value
        .Offset(RowCount, 12) = Me.rate.Value
    End With
    End Sub
    Thanks - John

    Note :
    1. My Example and attachment (original file) it's different looking.
    2. Other post but no answer mrexcel
    Attached Files Attached Files
    Last edited by johnreid7477; 05-31-2013 at 08:04 PM.

Similar Threads

  1. Replies: 5
    Last Post: 12-05-2012, 03:01 AM
  2. Replies: 10
    Last Post: 11-27-2012, 08:27 PM
  3. Combining data of Two Array or Range
    By princ_wns in forum Excel Help
    Replies: 5
    Last Post: 10-01-2012, 06:52 PM
  4. Replies: 0
    Last Post: 09-07-2012, 09:10 PM
  5. Excel Macro to Sort Data if a value changes in defined range
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 4
    Last Post: 09-05-2012, 10:31 AM

Posting Permissions

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