HWL
Active Member
- Joined
- Dec 1, 2009
- Messages
- 462
okay, a real simple way to insert code using VBA is done like this:
sheet1.range("a1").formula = "=b1+c1"
However I need to do something more complex that requires double quotes.
This is supposed to make a hyperlink to google's currency conversion link for a dynamic currency to USD. For example, EUR to USD.
For testing purposes see:
http://www.google.com/finance/converter?a=1&from=EUR&to=USD
I thought I was on the right track with chr(34) but still get errors.
Any help is greatly appreciated.
Excel 2007
sheet1.range("a1").formula = "=b1+c1"
However I need to do something more complex that requires double quotes.
Code:
Cells(curcnt, 6).Formula = "=hyperlink(chr(34) & [URL]http://www.google.com/finance/converter?a=1&from[/URL]= & chr(34) & UCase(Application.Trim(Cells(x, 5))) & chr(34) & &to=USD & chr(34), chr(34) & UCase(Application.Trim(Cells(x, 5))) & chr(34))"
This is supposed to make a hyperlink to google's currency conversion link for a dynamic currency to USD. For example, EUR to USD.
For testing purposes see:
http://www.google.com/finance/converter?a=1&from=EUR&to=USD
I thought I was on the right track with chr(34) but still get errors.
Any help is greatly appreciated.
Excel 2007