Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
some data in da same cell
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Test this on a copy of your workbook
Select a single rectangular area of cells containing data, then run this macro Sub DeleteandLeave() ' ' Randomly deletes some data in different cells at the ' time of running while leaving other data in da same cell ' Note: unconstrained by the value in the cell ' Set rng = Selection For k = 1 To Int(Rnd() * rng.Rows.Count * rng.Columns.Count + 1) i = Int(Rnd() * rng.Rows.Count + 1) j = Int(Rnd() * rng.Columns.Count + 1) rng.Cells(i, j).ClearContents Next k End Sub This may not be exactly what you want, but hopefully it "shows the way". -- Regards, Tom Ogilvy "maddy" wrote: some data in da same cell |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I delete data in a cell without deleting formula? | Excel Worksheet Functions | |||
Specify a row based on data from a cell to delete entire row..... | Excel Discussion (Misc queries) | |||
Delete duplicate data in a single cell | Excel Worksheet Functions | |||
delete hyphens within a cell while maintaining the data therein | Excel Discussion (Misc queries) | |||
Delete cell data in a row | Excel Programming |