Microsoft
Software
Hardware
Network
Question : print only certain rows in Excel 2003
Hi All,
Need some kind of macro/script to print only rows that contain non-null values in a certain column. Sounds like it should be easy but I'm no scripting expert. For example, I have 100 rows, but only the rows that contain a value populated in the "quantity" column should be actually printed when the user clicks PRINT. Also, first and last row should always be printed. Thanks.
Answer : print only certain rows in Excel 2003
GlobaLevel,
This should do it:
For i = 0 To Me.ListBox1.ListCount - 1
If Me.ListBox1.Selected(i) = True Then
myarray(0, 0) = ListBox1.List(i,0)
myarray(0, 1) = ListBox1.List(i,1)
myarray(0, 2) = ListBox1.List(i,2)
End If
Next i
Patrick
Random Solutions
DPM 2010 - Agent Install Problem (On 2k3 DC)
Virus and/or Malware redirecting my links
Raid 1 Rebuild Failed - Adaptec 1210SA
VC++ change .exe icon
Change Username on SBS2008
Exchange 2010. Install Failed, now can't uninstall
transfering a directory with multiple files in parallel
detect registry change windows ce
Inserting data into a varbinary(max) field
Word 2003 - working with tables, rows, and cells