No doubt the solution is probably right under my nose, but after spending hours messing with this I give up. I have a workaround which is not acceptable. Here is the formula straight out of the spreadsheet:
="https://www.google.com/maps/?z=12&t=k&q="&D2&"'"&C2
Here is the VBA code for which I get errors whatever I seem to do with it.
ActiveCell.FormulaR1C1 = "="""https://www.google.com/maps/?z=12&t=k&q="""&D2&"" '""&C2"
I would surely appreciate it if someone could help. I don't normally have too much difficulty with concatenation, but, this one has got me and there is no doubt some simple trick I am overlooking. Thanks in advance.
&string concatenation operator in Excel formulas can be used like this (without spaces), but be careful in VBA code; make sure to precede it with a space, otherwiseFooBar&gets interpreted as a type hint for aLongidentifier, as42&gets interpreted as a type hint for aLongliteral.