Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am using a macro to validate a form. I would like cell A1 to equate to the
last four charecters of cell a4. For e.g if cell a1 is 552004k00 cell a4 should have the value 4k00. I would be grateful if you could provide this to me in VBA code. Thanks -- Message posted via http://www.officekb.com |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
range("A1").value = right(Range("A1").Value,4)
HTH -- AP "mohd21uk via OfficeKB.com" <u20517@uwe a écrit dans le message de news: 5fc10ccb33c8b@uwe... I am using a macro to validate a form. I would like cell A1 to equate to the last four charecters of cell a4. For e.g if cell a1 is 552004k00 cell a4 should have the value 4k00. I would be grateful if you could provide this to me in VBA code. Thanks -- Message posted via http://www.officekb.com |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try:
Range("A4").Value = Right(Range("A1").Value, 4) -- Gary's Student "mohd21uk via OfficeKB.com" wrote: I am using a macro to validate a form. I would like cell A1 to equate to the last four charecters of cell a4. For e.g if cell a1 is 552004k00 cell a4 should have the value 4k00. I would be grateful if you could provide this to me in VBA code. Thanks -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom functions calculating time arguments Help Desperate | Excel Worksheet Functions | |||
resetting last cell | Excel Discussion (Misc queries) | |||
Instead of a negative number, I'd like to show zero... | Excel Worksheet Functions | |||
cell on one page equals cell on another page in excel? | Excel Worksheet Functions | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions |