Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Quotes in .formula calcs

I would like to put:

HLRange.Formula = "=Hyperlink('file:\\Server1\test.pdf')"

in code but I get a run time error-1004 message, can someone help with the
formatting on this.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Quotes in .formula calcs

HLRange.Formula = "=Hyperlink(""file:\\Server1\test.pdf"")"

You have to double up your double quotes inside that string.

Paulymon wrote:

I would like to put:

HLRange.Formula = "=Hyperlink('file:\\Server1\test.pdf')"

in code but I get a run time error-1004 message, can someone help with the
formatting on this.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to put quotes in a SUMIF formula and when is & used for cell Blubber Excel Discussion (Misc queries) 2 October 16th 08 01:09 AM
Formula help on Exit Calcs Codeman Excel Discussion (Misc queries) 5 October 2nd 08 06:43 PM
change straight quotes to curly quotes callico Excel Discussion (Misc queries) 2 June 22nd 07 10:23 PM
Quotes in formula Kevin Excel Programming 1 December 2nd 03 05:53 PM
Formula with quotes and ampersand Neil[_11_] Excel Programming 3 November 10th 03 07:49 AM


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"