Auto Number

aswain

New Member
Joined
Jul 30, 2010
Messages
7
Have a Shipper Form created with an inventory cntrl # and I need that number to increment by 1 after I click the print function. Is this even possible ?
 
Ok, not working, but I think it is because of how they have this form numbered. In this form in the Cell H11 the number is S-0000000
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Possibly :eek: untested:eek:

Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If ActiveSheet.Name = "Shipper" Then
    With Range("H11")
        .Value = Left(.Value, 2) & .Right(.Value, Len(.Value - 2) + 1)
    End With
End If
End Sub
 
Upvote 0
Vog,


Tested it and still no luck. I have racked my brain all weekend over this and no luck.
 
Upvote 0
If I were to email this workbook , does anyone think they can help me with this problem. This is not actually my project but it has been dumped on my desk to solve. And I am not a VBA person.
 
Upvote 0

Forum statistics

Threads
1,212,933
Messages
6,110,752
Members
448,295
Latest member
Uzair Tahir Khan

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