PC Review


Reply
Thread Tools Rate Thread

concatenating text with address reference

 
 
=?Utf-8?B?Uml2ZXJHdWxseQ==?=
Guest
Posts: n/a
 
      3rd Oct 2007
Hi,

I am unable to concatenate the word "Total " with a cell address.

Here's my script:
ActiveCell.Offset(0, 1).Formula = "+Total " & " & " & (ObjectHeadAddress)

The result is: +Total & E73

I would like the formula to come out looking like : +"Total "&E73
so that the formulae in the cell is meaningful.

Please advice how to get the extra " " marks around the work Total. When I
try to put in the extra quotation marks, I get the debug error message.

Thank you in advance.
 
Reply With Quote
 
 
 
 
NOPIK
Guest
Posts: n/a
 
      3rd Oct 2007
Buy youself a BASIC or programming manual (seriously, you will
discover a lots of "tricks"). For example, if you need string
quotation character inside the string - just double it:
"""" - will result a " in string.

 
Reply With Quote
 
=?Utf-8?B?Uml2ZXJHdWxseQ==?=
Guest
Posts: n/a
 
      3rd Oct 2007
Could you provide the example?

When I doubled the quotations it gave a compile error.

Thank you

"NOPIK" wrote:

> Buy youself a BASIC or programming manual (seriously, you will
> discover a lots of "tricks"). For example, if you need string
> quotation character inside the string - just double it:
> """" - will result a " in string.
>
>

 
Reply With Quote
 
=?Utf-8?B?Uml2ZXJHdWxseQ==?=
Guest
Posts: n/a
 
      3rd Oct 2007
Thank you NOPIK - I understand you to mean that not just an extra set of
quotes, but two extra sets around the text. Anyway it works - thank you
again.

"NOPIK" wrote:

> Buy youself a BASIC or programming manual (seriously, you will
> discover a lots of "tricks"). For example, if you need string
> quotation character inside the string - just double it:
> """" - will result a " in string.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference a file by concatenating cell variables Michael Microsoft Excel Worksheet Functions 13 24th Oct 2008 09:54 PM
Building a reference by concatenating components =?Utf-8?B?RWxsaXM=?= Microsoft Excel Misc 4 19th Feb 2007 07:15 PM
How can I convert text to reference ? Ex: ISNUMBER(ADDRESS(6;10;2. =?Utf-8?B?RmVybmFuZG9NZW5kZXM=?= Microsoft Excel Misc 1 28th Jan 2005 06:54 PM
Help w/ Me Function? Or: concatenating a string for a ADO field reference? BrainlordMesomorph Microsoft Access Form Coding 1 26th Jul 2004 04:34 PM
Help w/ Me Function? Or: concatenating a string for a ADO field reference? BrainlordMesomorph Microsoft Access Form Coding 2 25th Jul 2004 08:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 AM.