Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default VBA code to "skip" empty rows

Quin,

Thanks for your reply.

1. I understand that you find it straight forward to use Goto, but when you
start writing larger applications, you will find it harder to follow the
structure in the code, specially if your code need more than one goto
statement. I only use goto statements in error handling situations.

2. '<' (not equal to) is the opposite of '=' (equal to). So if the cell
tested is not empty, then proceed with next statement, else goto end if
statement.

3. Glad you figured out why I inserted the Trim statement.

4. The textbox margin section is commented out, because they are only needed
if you want to change default settings.

I hope this answered the questions.

Per

"Quin" skrev i meddelelsen
...
Mike H,

Thanks for fixing my code. I can see how the €śRange€ť statement can be
used
to accomplish my task. The result is exactly what I needed and wanted.


Jessen,

I found a lot of interesting information in your reply, but since I am
learning, I also have several questions. I hope you have a minute to
answer.


1. I dont understand why it is frowned upon to use goto statements. It
seems like such an easy and straight forward thing to do.
2. I cant get my mind around using a < symbol. I tried to Google it
with
no success.
3. I Googled €śTrim€ť to find it removes leading and trailing spaces but not
sure why that helps in this case.
4. Im not sure why the text frame section is commented. Is that just to
use default settings when the text boxes are created?

My last observation is €śI must be Dyslexic€ť Very poor of me to not notice
my
confusion on the use of the €śCells€ť statement. I appreciate your comment
to
direct my attention to it.
Thank you Mike and Jessen

Quin

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
Empty a cell if the values equal to "IN" , "MC" or "PP" YHT Excel Programming 1 December 28th 07 06:59 AM
delete rows if cell in row contains "a" or "o" or empty bartman1980 Excel Programming 2 November 4th 07 08:20 PM
VBA code to "reset" application run and empty preserved arrays [email protected] Excel Programming 2 May 9th 07 11:40 AM
Is there a way to set the "tab" key to skip certain cells/rows? mlacigam Excel Discussion (Misc queries) 0 May 18th 06 08:22 PM
transpose the code from "rows" to "columns" markx Excel Programming 4 September 21st 05 09:27 AM


All times are GMT +1. The time now is 06:29 AM.

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"