CREATE A TRANSMISSION SLIP

madmiike

New Member
Joined
May 2, 2020
Messages
7
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
Good morning all,
This is my problem,
Indeed, I would like that from a form displaying the database (BDD Sheet) of data, to be able to create, generate a slip containing automatically
a number
the receiver
the date of dispatch.
It's about copying
It will be a question of copying the elements in the columns:
FILE NUMBER
MATERIAL
TITLE
FASHION
ASSESS
from the "BDD" sheet to the "TRANS" sheet
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi
May be
VBA Code:
Sub test()
    Dim a As Variant, lr
    a = Sheets("BDD").Cells(1, 1).CurrentRegion.Offset(1)
    With Sheets("TRANS")
        lr = .Cells(1, 1).Cells(Rows.Count, 1).End(xlUp).Row - 14
        .Cells(15, 2).Resize(lr, 5) = Application.Index(a, Evaluate("row(1:" & lr & ")"), Array(1, 3, 8, 9, 10))
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top