I want to change value of range (Source) and paste to to another range (destination) in excel vba. Please note that forward slashes may vary in source.
For instance I want to do like this but from vba excel:
psedu code:
ThisWorkbook.Sheets("Sheet1").Range(A1,A4).Value = Replace source string before last forward with variable.
variable = "C:Destination\"
Basically I am amending values of Source and want to paste in destination.
This Code works but paste same values from source to destination
ThisWorkbook.Sheets("Sheet1").Range(A1,A4).Value = ThisWorkbook.Sheets("Sheet1").Range(B1,B4).Value
Please help in am new to VBA, Thanks in advance.