Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default concatenating text with address reference

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default concatenating text with address reference

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default concatenating text with address reference

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.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default concatenating text with address reference

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
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
Convert ADDRESS() text result to cell reference FirstVette52 Excel Worksheet Functions 5 April 25th 23 03:42 AM
Hyperlink Address and SubAddress not concatenating correctly EagleOne Excel Discussion (Misc queries) 0 September 11th 06 03:49 PM
Concatenating a cell address nebb Excel Worksheet Functions 3 July 16th 05 10:38 PM
Construct address as a reference not "text" aka_norm Excel Worksheet Functions 2 May 28th 05 10:42 PM
How can I convert text to reference ? Ex: ISNUMBER(ADDRESS(6;10;2. FernandoMendes Excel Discussion (Misc queries) 1 January 28th 05 06:54 PM


All times are GMT +1. The time now is 07:36 PM.

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"