|
#1
|
|||
|
|||
Multiline Macro Value
Is there a way to read each line, one at a time, from a mutiline macro value.
I cant seem to find an example, any sample you can provide would be appreciated. |
#2
|
|||
|
|||
Forgot to mention I was trying to do this in VBScript
|
#3
|
|||
|
|||
See attached sample.
|
#4
|
|||
|
|||
Great thanks for the help!!
|
#5
|
|||
|
|||
I tried to modify each line but I am not getting anywhere, I tried the following:
'Set objSearchResults = Application.Macros(vbldMacroTemporary).Item("TMP_S EARCH_RESULTS") 'strLines = Split(objSearchResults.Value, vbCrLf) 'For Each strEachLine In strLines ' If strEachLine = "Somthing" then ' strEachLine = "SomethingDifferent" ' End if 'Next 'objSearchResults.Value = strLines The main macro is not geting updated. |
#6
|
|||
|
|||
Attached.
|
#7
|
|||
|
|||
Thanks again!
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|