Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am needing to set up a test condition to test if the
activecell is a string or number. If it's a number I want it to sum up the cells. If it's a string I want it to copy and paste. I believe I have the correct code for the sum and copy/paste. I just don't know what the code is for the If test. If activecell = <code to see if cell is some number then activecell.offset(rowoffset:=1,columnoffset:=0).se lect activecell.application.worksheetfunction.sum(myRan ge) else activecell.copy activecell.offset(rowoffset:=1,columnoffset:=0).se lect activecell.pastespecial xlpastevalues end if I left out the code that sets myRange using the Range() function. I just need to know what I can place in the first line of code to make this work. Jeff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check data range and return false value if a cell is blank | Excel Discussion (Misc queries) | |||
How do I check several sheets for data in a particular cell? | Excel Discussion (Misc queries) | |||
How do i have a check display with any data entry in a cell | Excel Discussion (Misc queries) | |||
Check to see if cell data is within a range | Excel Worksheet Functions | |||
Looking to check a cell on ws1 against data in ws2 that is 7 colu. | Excel Worksheet Functions |