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
Script to Remove Groups from the "Member of" groups in a list of user accounts
Infopath Form service comparison between SharePoint 2007 and SharePoint 2010
Deleting Unmatched Records MS Acess 2000
Large Calendar
Store file in mysql using connector.net and blob field
Rpc over Https
Unable To Add Outlook Account
Windows XP - BSOD STOP: C000021a The windows logon process terminated unexpectedly with a status of 0x00000005 (0x00000000 0x00000000)
When ActiveX control on form changes, apply new value to another control on form.
WCF Problem: The private key is not present in the X.509 certificate.