#1   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default Data Validation

Is it possible for data validation to overwrite an existing sheet? I'm using
a macro to extract rows to a second sheet, it has space for 12 possible rows.
If the extraction is less than 12 rows, say only 8, the balance of the rows
would be already populated. Not from the last use, but from a reset button
that populates the "copy to" field with 9's. This data is then moved to a
third sheet that uses 9's instead of blank cells. Currently I'm receiving an
error when I try to overwrite the populated cells.

I know it sounds crazy, but thats the way it was set-up?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default Data Validation

That should be Advanced Filters, not Data Validation.

"M.A.Tyler" wrote:

Is it possible for data validation to overwrite an existing sheet? I'm using
a macro to extract rows to a second sheet, it has space for 12 possible rows.
If the extraction is less than 12 rows, say only 8, the balance of the rows
would be already populated. Not from the last use, but from a reset button
that populates the "copy to" field with 9's. This data is then moved to a
third sheet that uses 9's instead of blank cells. Currently I'm receiving an
error when I try to overwrite the populated cells.

I know it sounds crazy, but thats the way it was set-up?

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Data Validation

Maybe you could just populate the empty cells with 9's after you do your
advanced filter.

dim myRng as range
with worksheets("Sheet2")
set myrng = nothing
on error resume next
set myrng = .range("a1:A12").cells.specialcells(xlcelltypeblan ks)
on error goto 0
if myrng is nothing then
'no empty cells
else
myrng.value = 9
end if
end with



M.A.Tyler wrote:

Is it possible for data validation to overwrite an existing sheet? I'm using
a macro to extract rows to a second sheet, it has space for 12 possible rows.
If the extraction is less than 12 rows, say only 8, the balance of the rows
would be already populated. Not from the last use, but from a reset button
that populates the "copy to" field with 9's. This data is then moved to a
third sheet that uses 9's instead of blank cells. Currently I'm receiving an
error when I try to overwrite the populated cells.

I know it sounds crazy, but thats the way it was set-up?

Thanks in advance.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
M.A.Tyler
 
Posts: n/a
Default Data Validation

Thanks Dave! Worked great!

"Dave Peterson" wrote:

Maybe you could just populate the empty cells with 9's after you do your
advanced filter.

dim myRng as range
with worksheets("Sheet2")
set myrng = nothing
on error resume next
set myrng = .range("a1:A12").cells.specialcells(xlcelltypeblan ks)
on error goto 0
if myrng is nothing then
'no empty cells
else
myrng.value = 9
end if
end with



M.A.Tyler wrote:

Is it possible for data validation to overwrite an existing sheet? I'm using
a macro to extract rows to a second sheet, it has space for 12 possible rows.
If the extraction is less than 12 rows, say only 8, the balance of the rows
would be already populated. Not from the last use, but from a reset button
that populates the "copy to" field with 9's. This data is then moved to a
third sheet that uses 9's instead of blank cells. Currently I'm receiving an
error when I try to overwrite the populated cells.

I know it sounds crazy, but thats the way it was set-up?

Thanks in advance.


--

Dave Peterson

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
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Data Validation Kosta S Excel Worksheet Functions 2 July 17th 05 11:38 PM
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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