Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Insert line via 'IF' stmt

any way to say 'insert a line' if a parameter meets a certain condition?

In my case, I want to insert a line it the invoice number doesn't match the
invoice number above it.

Thx,

A
  #2   Report Post  
Posted to microsoft.public.excel.programming
KC KC is offline
external usenet poster
 
Posts: 107
Default Insert line via 'IF' stmt

If your invoice number is in C9, then you are comparing it with that in C8

i=9
if range("C" & i)<range("C" & i-1) then rows(i).insert

"A" wrote:

any way to say 'insert a line' if a parameter meets a certain condition?

In my case, I want to insert a line it the invoice number doesn't match the
invoice number above it.

Thx,

A

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
Automatically insert a line aeddave Excel Worksheet Functions 5 April 23rd 09 01:09 PM
Insert New Line Clare Excel Discussion (Misc queries) 4 July 6th 06 03:40 PM
Macro Line Insert Frantic Excel-er Excel Discussion (Misc queries) 4 March 20th 06 11:08 PM
Insert each line in a new row BrianB Excel Discussion (Misc queries) 0 May 31st 05 03:14 PM
Automatic line insert benosc Excel Programming 1 March 4th 04 05:43 PM


All times are GMT +1. The time now is 11:18 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"