Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Empirically I learned that the VBA function Mid() can be used on the
left side of an assignment. For example: s = "12345678" Mid(s, 4, 2) = "cd" results in "123cd678". But the following does not work: Left(s, 2) = "ab" Right(s,2) = "ef" Then I looked at the Help text for Mid, and I found nothing that indicates that even Mid() can be on the left side of an assignment. Where is written that I can use Mid() on the left side? Is there something else that I should use to overwrite any part of a string? (Other than cumbersome concatenation like Mid(s,1,3) & "cd" & Mid(s, 6,3).) Is there an easier way to overwrite the left and right parts of a string other than using Mid()? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum Left Side & Right Side Numbers | Excel Worksheet Functions | |||
how to make left side stay still and right side can move left to r | Excel Discussion (Misc queries) | |||
change rows from left side to right side | Excel Discussion (Misc queries) | |||
y-axis moves from the left hand side to the right hand side | Excel Discussion (Misc queries) | |||
y-axis moves from the left hand side to the right hand side! | Charts and Charting in Excel |