Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default how do I judge current document is a blank one?

there should be a way to judge whether current document is a blank one or not
but I can not find it
how can i do it?
any help will be appreciated?


thanks,
Ronnie Ren
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default how do I judge current document is a blank one?

not a safe method, but the usedrange property , if the address is A1 and the
cell is blank. Doesn't work if yuo populate a sheet and then clear it.

you could use the COUNTA function perhaps?

"Ronnie" wrote:

there should be a way to judge whether current document is a blank one or not
but I can not find it
how can i do it?
any help will be appreciated?


thanks,
Ronnie Ren

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default how do I judge current document is a blank one?

it work well if there is no character,
but if current document contains chart or picture, usedrange's address is A1
and the cell is also blank, but it is not a blank document
how can I deal with this case?

thanks,
Ronnie Ren

"Patrick Molloy" wrote:

not a safe method, but the usedrange property , if the address is A1 and the
cell is blank. Doesn't work if yuo populate a sheet and then clear it.

you could use the COUNTA function perhaps?

"Ronnie" wrote:

there should be a way to judge whether current document is a blank one or not
but I can not find it
how can i do it?
any help will be appreciated?


thanks,
Ronnie Ren

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default how do I judge current document is a blank one?

Ronnie,
Depends what you define as "blank".

What about pictures, formats, cell borders, validation, background, VBA
code, cell comments, document properties........

NickHK

"Ronnie" wrote in message
...
there should be a way to judge whether current document is a blank one or

not
but I can not find it
how can i do it?
any help will be appreciated?


thanks,
Ronnie Ren



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default how do I judge current document is a blank one?

blank document means that there is nothing to print
in other word, user can not see something. in excel, when user clicks the
file menu and select the print menu to print current document, if current
document is a blank document, then a dialog will be show up to tell user that
there is nothing to print.
it is a blank document i mean

thanks,
Ronnie Ren


"NickHK" wrote:

Ronnie,
Depends what you define as "blank".

What about pictures, formats, cell borders, validation, background, VBA
code, cell comments, document properties........

NickHK

"Ronnie" wrote in message
...
there should be a way to judge whether current document is a blank one or

not
but I can not find it
how can i do it?
any help will be appreciated?


thanks,
Ronnie Ren




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
If formula current/expired/blank Warren Jo Excel Worksheet Functions 3 March 1st 10 12:52 PM
Auto insert a blank row above the current row based on a cell val. mattwill Excel Discussion (Misc queries) 2 November 6th 08 11:30 PM
Qestion to judge whether the candidate has passed or failed ...... Neelakanta New Users to Excel 5 June 15th 08 03:02 PM
When open document, want date to be current automatically. How? Rae Excel Discussion (Misc queries) 5 August 29th 07 03:34 PM
How can I check a cell for current date and insert it if blank? Don K New Users to Excel 3 September 29th 06 02:46 PM


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

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"