Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Print rows with special value only

I have a table with many rows. I place quantity in one column for few rows.
How can I have ONLY the rows with quantity printed?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Print rows with special value only

Hide the rows without quantity.
Use Autofilter:

http://www.contextures.com/xlautofilter01.html

--
Gary''s Student - gsnu200835


"STIG" wrote:

I have a table with many rows. I place quantity in one column for few rows.
How can I have ONLY the rows with quantity printed?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default Print rows with special value only

supposing you have your quantities in column "A" (cells(cnt1,1)):

sub deletingrows()
dim cnt1 as integer
for cnt=1 to 100 'or put the number of rows
if cells(cnt1,1)=empty then 'for column "B":cells(cnt1,2) or for "C":
cells(cnt1,3)
rows(cnt1).delete
cnt1=cnt1-1
end if
next
end sub

other way is doing it with the sort command (Data--Sort) .

"STIG" wrote:

I have a table with many rows. I place quantity in one column for few rows.
How can I have ONLY the rows with quantity printed?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Print Instructions GatorGirl Excel Worksheet Functions 3 June 19th 08 03:56 PM
The Print # command print not all rows from excel sheet to file pieros Excel Programming 17 February 22nd 07 03:33 PM
Macro to hide rows with a certain cell empty then set print area and print tahrah Excel Programming 12 January 9th 07 03:47 AM
Print cell borders with special 'skin' DavieM Excel Discussion (Misc queries) 0 March 25th 06 10:52 PM
special type of rows to columns procedure cretesupplies New Users to Excel 3 June 3rd 05 06:28 PM


All times are GMT +1. The time now is 03:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"