Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default how to remove blank rows from a sheet using visual basic sode

I am using Excel 2003 Visual Basic Programming to try to improve my work . I
have an excel sheet with two coloumns, one coloumn contains nanes of
companies, named first coloumn, and the other, the secomd colomun containes a
modified list of the companies with new companies added randmoly in the
second coloumn . I used the the VLOOKUP function to compare between two
lists of companies names in different coloumns and find out the new company
name which appears in the second coloumn an not exist in the first , then I
wrot a VB code to put the new company names under the names in the first
coloumn.So, the first coloumn shall contain the new company names at the end
of the coloumn besides old company names that it already exist.
The problem is that the new names which appears in the first coloumn due to
to VB code are in scattered rows, i.e, the first coloumn now has many blank
rows(or cells) seperating the new company names generateg by VB code.
My Question is How to remove blank rows (or cells) that appears in the
first coloumn?
using suitable VB code?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default how to remove blank rows from a sheet using visual basic sode

http://www.cpearson.com/excel/deleti...eleteBlankRows

--
Kind regards,

Niek Otten

"nabil" wrote in message
...
I am using Excel 2003 Visual Basic Programming to try to improve my work .
I
have an excel sheet with two coloumns, one coloumn contains nanes of
companies, named first coloumn, and the other, the secomd colomun
containes a
modified list of the companies with new companies added randmoly in the
second coloumn . I used the the VLOOKUP function to compare between two
lists of companies names in different coloumns and find out the new
company
name which appears in the second coloumn an not exist in the first , then
I
wrot a VB code to put the new company names under the names in the first
coloumn.So, the first coloumn shall contain the new company names at the
end
of the coloumn besides old company names that it already exist.
The problem is that the new names which appears in the first coloumn due
to
to VB code are in scattered rows, i.e, the first coloumn now has many
blank
rows(or cells) seperating the new company names generateg by VB code.
My Question is How to remove blank rows (or cells) that appears in the
first coloumn?
using suitable VB code?



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
How to delete rows in visual basic Ruben Excel Discussion (Misc queries) 3 August 27th 08 09:43 AM
How to delete rows in visual basic Ruben Excel Discussion (Misc queries) 3 August 20th 08 03:50 PM
Visual Basic - Variable Sheet Names MarkT Excel Discussion (Misc queries) 10 December 18th 07 07:12 PM
Can I run Visual Basic procedure using Excel Visual Basic editor? john.jacobs71[_2_] Excel Programming 3 December 26th 05 02:22 PM
Visual Basic code to find next available (blank) row in a spreadsh TB Excel Programming 2 July 15th 05 08:01 PM


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

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

About Us

"It's about Microsoft Excel"