Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the following piece of code, as you can see I select Column E and
clear the contents for any zero data in the column. What I then need to do is take any NON-zero data, multiply it by -1 (make it negative, that is) and then move it over one column (so that it no longe exists in its original column). How do I do this dynamically? you can see below I am stuck at the "Else" part. Thanks a lot! Columns("E").Select For Each Cell In Selection If Cell.Value = 0 Then Cell.ClearContents Else: Cell.Cut????????? End If Next Cell |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Quick question about moving around a worksheet using vba in a macr | Excel Programming | |||
Moving Data Question | Excel Worksheet Functions | |||
Quick Question - Pivot Table Data | Excel Discussion (Misc queries) | |||
Quick question - quick answer about assigning shortcut keys | Excel Programming | |||
Quick question - is there an easy way to find which row is the last with data? | Excel Programming |