Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default isblank macro

I paste a file containing the names of departments and data regarding them
into a worksheet. I run a macro to sort and move each department's data into
their own worksheets. Some departments may not have data moved to their
worksheet (this is a good thing). If their worksheet (i.e. C2) is blank, I
would like the macro to say "Congratulations! You do not have any Negative
reports for this period". I'm having trouble developing the IF statement.

TIA,
Carole O
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default isblank macro

hi
lot of ways to do this. heres one
Sheets("sheet2").Activate
If Range("A1") = "" Then
Range("A1").Value = "Congratulations! You do not have any Negative
reports for this period."
End If

regards
FSt1

"Carole O" wrote:

I paste a file containing the names of departments and data regarding them
into a worksheet. I run a macro to sort and move each department's data into
their own worksheets. Some departments may not have data moved to their
worksheet (this is a good thing). If their worksheet (i.e. C2) is blank, I
would like the macro to say "Congratulations! You do not have any Negative
reports for this period". I'm having trouble developing the IF statement.

TIA,
Carole O

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default isblank macro

Thank you so much! That is exactly what I wanted to do!

Carole O

"Carole O" wrote:

I paste a file containing the names of departments and data regarding them
into a worksheet. I run a macro to sort and move each department's data into
their own worksheets. Some departments may not have data moved to their
worksheet (this is a good thing). If their worksheet (i.e. C2) is blank, I
would like the macro to say "Congratulations! You do not have any Negative
reports for this period". I'm having trouble developing the IF statement.

TIA,
Carole O

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
isblank [email protected] Excel Worksheet Functions 4 December 23rd 09 05:38 AM
Isblank Lishen New Users to Excel 2 April 17th 09 12:25 PM
IsBlank Mark Costello[_2_] Excel Discussion (Misc queries) 5 November 7th 08 12:11 PM
IF AND ISBLANK Louise Excel Worksheet Functions 1 February 7th 08 08:03 PM
ISBLANK() kw_uh97 Excel Worksheet Functions 8 June 30th 07 06:42 AM


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