PDA

View Full Version : how to use wordpad from VBA



saban
11-13-2007, 05:14 AM
Guys I need to open file in wordpad with VBA and then do find and replace from there(wordpad)

Could someone tell how can this be done

thnx

OTWarrior
11-13-2007, 05:48 AM
why do you specifically need wordpad?

Is Word not suitable?

saban
11-13-2007, 06:12 AM
No no at this case because it resaves XML in its own scheme and then this xml is not the same as I would wanted

Any ideas how can I do that??

TonyJollans
11-13-2007, 06:21 AM
As far as I know it can't be done.

saban
11-13-2007, 08:21 AM
I can run wordpad with shell but I guess that is all you can do with shell or what??

And I have found a solution that I think gives me same results
I opened a file with Format:=wdOpenFormatUnicodeText

Now it seems like word does not replace file with its scheme

TonyJollans
11-13-2007, 08:58 AM
To be perfectly honest I am completely lost! You are trying to do something - I'm not sure what - and firing off questions that don't really make sense out of context.

For example, opening what as unicode text gives you the same results as what?