Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How to tell if a range or cell is dirty

Is there any way to tell if any of the cells in a range have been changed? I
have a VBA routine that allows the user to "auto-fill" a range of cells with
a certain value, but if any of the cells in the range have been modified but
not saved, I want to inform the user and (maybe) save the changes first. I
can't seem to find any property that indicates whether a range or a specific
cell has changed or not. Is there such a property, or maybe a way to compare
the current cell contents with the previous cell contents?

Thanks for any information,

Carl Rapson


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default How to tell if a range or cell is dirty

Carl

?ThisWorkbook.Saved

This will return True if it has not been changed and False if it has.

Regards

Trevor


"Carl Rapson" wrote in message
...
Is there any way to tell if any of the cells in a range have been changed?

I
have a VBA routine that allows the user to "auto-fill" a range of cells

with
a certain value, but if any of the cells in the range have been modified

but
not saved, I want to inform the user and (maybe) save the changes first. I
can't seem to find any property that indicates whether a range or a

specific
cell has changed or not. Is there such a property, or maybe a way to

compare
the current cell contents with the previous cell contents?

Thanks for any information,

Carl Rapson




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How to tell if a range or cell is dirty

Thanks, I finally found that property, and it does help me somewhat.
However, that doesn't solve my main problem -- how can I tell if the cells
contained within a range have been changed? That way, I don't have to save
unless the cells I'm going to overwrite haven't been saved.

Thanks again,

Carl

"Trevor Shuttleworth" wrote in message
...
Carl

?ThisWorkbook.Saved

This will return True if it has not been changed and False if it has.

Regards

Trevor


"Carl Rapson" wrote in message
...
Is there any way to tell if any of the cells in a range have been

changed?
I
have a VBA routine that allows the user to "auto-fill" a range of cells

with
a certain value, but if any of the cells in the range have been modified

but
not saved, I want to inform the user and (maybe) save the changes first.

I
can't seem to find any property that indicates whether a range or a

specific
cell has changed or not. Is there such a property, or maybe a way to

compare
the current cell contents with the previous cell contents?

Thanks for any information,

Carl Rapson






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default How to tell if a range or cell is dirty

Carl

you could use the Worksheet_Change event to set a flag if any of the cells
you are interested in get changed.

Regards

Trevor


"Carl Rapson" wrote in message
...
Thanks, I finally found that property, and it does help me somewhat.
However, that doesn't solve my main problem -- how can I tell if the cells
contained within a range have been changed? That way, I don't have to save
unless the cells I'm going to overwrite haven't been saved.

Thanks again,

Carl

"Trevor Shuttleworth" wrote in message
...
Carl

?ThisWorkbook.Saved

This will return True if it has not been changed and False if it has.

Regards

Trevor


"Carl Rapson" wrote in message
...
Is there any way to tell if any of the cells in a range have been

changed?
I
have a VBA routine that allows the user to "auto-fill" a range of

cells
with
a certain value, but if any of the cells in the range have been

modified
but
not saved, I want to inform the user and (maybe) save the changes

first.
I
can't seem to find any property that indicates whether a range or a

specific
cell has changed or not. Is there such a property, or maybe a way to

compare
the current cell contents with the previous cell contents?

Thanks for any information,

Carl Rapson








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How to tell if a range or cell is dirty

Thanks, I guess that's what I'll have to do. I was just hoping there was a
built-in way of doing it.

Carl

"Trevor Shuttleworth" wrote in message
...
Carl

you could use the Worksheet_Change event to set a flag if any of the cells
you are interested in get changed.

Regards

Trevor


"Carl Rapson" wrote in message
...
Thanks, I finally found that property, and it does help me somewhat.
However, that doesn't solve my main problem -- how can I tell if the

cells
contained within a range have been changed? That way, I don't have to

save
unless the cells I'm going to overwrite haven't been saved.

Thanks again,

Carl

"Trevor Shuttleworth" wrote in message
...
Carl

?ThisWorkbook.Saved

This will return True if it has not been changed and False if it has.

Regards

Trevor


"Carl Rapson" wrote in message
...
Is there any way to tell if any of the cells in a range have been

changed?
I
have a VBA routine that allows the user to "auto-fill" a range of

cells
with
a certain value, but if any of the cells in the range have been

modified
but
not saved, I want to inform the user and (maybe) save the changes

first.
I
can't seem to find any property that indicates whether a range or a
specific
cell has changed or not. Is there such a property, or maybe a way to
compare
the current cell contents with the previous cell contents?

Thanks for any information,

Carl Rapson












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
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
intellimouse gone dirty-boy; restore backspace on outer left butt. Terminatrix Excel Discussion (Misc queries) 1 February 15th 05 06:27 AM
Copying data down to next dirty cell, then copying that data slarson Excel Programming 0 September 15th 03 09:19 PM


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