Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The person that wrote this code is no longer around. It works great in the
immediate window. My question is what do I do to get it to print onto a worksheet? Thank You Sub bill() 'Dim varibles Dim xx As Integer Dim Row As Integer Dim Unit As Integer Dim Shelf As Integer Dim Position As Integer Dim Rowcounter As Integer Dim Unitcounter As Integer Dim Shelfcounter As Integer Dim Positioncounter As Integer 'Set varibles starting number Row = 1 Unit = 1 Shelf = 1 Position = 0 Rowcounter = 1 Unitcounter = 1 Shelfcounter = 1 Positioncounter = 1 xx = 0 Do While xx <= 50 xx = xx + 1 Position = Position + 1 If Position = 6 Then Shelf = Shelf + 1 Position = 1 End If Debug.Print " Row is " & Row & _ " Unit is " & Unit & _ " Shelf is " & Shelf & _ " Position is " & Position Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart doesn't print w/worksheet properly but will print by itself | Excel Discussion (Misc queries) | |||
how do u print back2back print of different worksheet in exel. | Excel Worksheet Functions | |||
Print worksheet but dont want two cells too print is it possible | Excel Programming | |||
print a specific area within a worksheet by clicking on print? | Excel Worksheet Functions | |||
Print Macro that will Print Entire worksheet except.... | Excel Programming |