Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Variables to Comments

Mas,

This is a sample of a recorded code.

Range("A2").Comment.Text Text:=" My Name:" & Chr(10) & "hghghg"
Chr(10) & "jkjkjk" & Chr(10) & "klklk"

HTH


Charle

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
MAS MAS is offline
external usenet poster
 
Posts: 18
Default Variables to Comments

Hi,

I have read this somewhere but can't bottomed such a simple issue...

Whilst getting VBA to write some variables into a new comment, how do I add
a carriage return so that each variable is entered in the comment on a new
line ?

Ta.



  #3   Report Post  
Posted to microsoft.public.excel.programming
MAS MAS is offline
external usenet poster
 
Posts: 18
Default Variables to Comments

DOH...

Chr (10)

Thats the bit I couldn't remember.. Thanks..

M.


"Charles " wrote in message
...
Mas,

This is a sample of a recorded code.

Range("A2").Comment.Text Text:=" My Name:" & Chr(10) & "hghghg" &
Chr(10) & "jkjkjk" & Chr(10) & "klklk"

HTH


Charles


---
Message posted from http://www.ExcelForum.com/



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
excel 2000 how to format the comments font all comments Delquestion Excel Discussion (Misc queries) 1 October 8th 09 02:19 PM
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
in excel useing comments how do you add clip art to comments? dhouse New Users to Excel 2 July 18th 07 08:14 AM
SUM IF and two variables Leigh Ann Excel Worksheet Functions 6 May 25th 05 03:24 AM
How to see all variables? count Excel Programming 1 April 4th 04 02:51 AM


All times are GMT +1. The time now is 04:57 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"