Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to edit cell
Kevin,
Not absolutely sure how you want to go about this, but see if this helps Dim x as Long ' requires whole numbers only, no decimals x = InputBox("Enter new value") ActiveCell.Value = x & Right(ActiveCell.Value, 6) you could set x as String and it will accept numbers or text. -- sb "Kevin" wrote in message ... I would like to edit the first 6 digits of a cell, leaving the last 6 as is. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
edit the cell contents command in Excel 2007 macro | Excel Worksheet Functions | |||
Macro to edit formula in cell | Excel Discussion (Misc queries) | |||
Edit macro to match entire cell contents | Excel Discussion (Misc queries) | |||
How can I edit cell contents with a macro in Excel? | Excel Discussion (Misc queries) | |||
How can I edit cell contents with a macro in Excel? | Excel Discussion (Misc queries) |