LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Delet certain row in a sheets in workbook

Hi arne

what do you mean by:
"Now sometimes there is a problem with the numbers for a certain
date."

is the date wrong, or is some other field wrong?

to give you a start for your code:

dim sh_ as worksheet

for each sh_ in activeworkbook.sheets
for i = sh_.cells(65536,1).end(xlup).row to 1 step -1
if sh_.cells(i,1).value = WRONG 'this is the line
'you have to change according to your problem
sh_.rows(i).delete
end if
next i
next sh_

hth

Carlo

On Dec 5, 5:45 pm, Arne Hegefors
wrote:
Hi! I have a big excel workbook with lots of sheets. In most sheets in column
A I have a list of dates. The rest of the columns contains values
corresponding to that date. Now sometimes there is a problem with the numbers
for a certain date. Then I want to be able to delete that particular row (for
that date) in every worksheet. Since there are so many it takes alot of time
to do manually. Does anyone have any idea on how to do this? thanks!


 
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
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA Amaxwell Excel Worksheet Functions 4 August 17th 06 06:23 AM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Worksheet Functions 6 March 29th 06 12:43 PM
Macro for filter on protected workbook that works for all sheets, no matter what sheets are named? StargateFanFromWork[_3_] Excel Programming 6 January 26th 06 06:31 PM
Delet row if bold jeffbert Excel Programming 4 February 14th 05 05:46 PM
Once criteria has been met, delet the same row. Les Stout Excel Programming 7 November 4th 03 08:07 PM


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