Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MFS MFS is offline
external usenet poster
 
Posts: 36
Default Sheet direction, extract data from comment

I would like to change the sheet direction by default.
Also if it is possible, how to extract data from comment to cell.

--
MFS22
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sheet direction, extract data from comment

You can try the below UDF. To try this launch VBE using Alt+F11. Insert
module and paste the below code. Save and close VBE. Get back to workbook.

Sub GetComment(varData)
GetComment = varData.Comment.Text
End Sub


Add a comment to cell A1
B1 = GetComment(A1)

If this post helps click Yes
---------------
Jacob Skaria


"MFS" wrote:

I would like to change the sheet direction by default.
Also if it is possible, how to extract data from comment to cell.

--
MFS22

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sheet direction, extract data from comment

Revised...

Function GetComment(varRange As Range) As String
For Each c In varRange
If Not c.Comment Is Nothing Then
GetComment = GetComment & c.Comment.Text & ","
End If
Next
End Function

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

You can try the below UDF. To try this launch VBE using Alt+F11. Insert
module and paste the below code. Save and close VBE. Get back to workbook.

Sub GetComment(varData)
GetComment = varData.Comment.Text
End Sub


Add a comment to cell A1
B1 = GetComment(A1)

If this post helps click Yes
---------------
Jacob Skaria


"MFS" wrote:

I would like to change the sheet direction by default.
Also if it is possible, how to extract data from comment to cell.

--
MFS22

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sheet direction, extract data from comment

Hi,
You may want to refer to question 46 of the following link -
http://ashishmathur.com/replies.aspx

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"MFS" wrote in message
...
I would like to change the sheet direction by default.
Also if it is possible, how to extract data from comment to cell.

--
MFS22


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
extract data from range,and place in the same sheet tkraju via OfficeKB.com Excel Discussion (Misc queries) 2 April 13th 09 02:40 AM
Extract Data by keyword and export to new Excel sheet Burger Queen Excel Worksheet Functions 1 November 9th 06 09:46 AM
Adding a Comment-Column to an external data-sheet amac Excel Worksheet Functions 0 August 17th 06 01:58 PM
macro to extract data of a selected sheet TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 February 27th 06 06:47 AM
Help me, compare 2 sheet and extract the match data into the new sheet. sweetnet Excel Discussion (Misc queries) 1 February 22nd 06 07:49 PM


All times are GMT +1. The time now is 09:23 PM.

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

About Us

"It's about Microsoft Excel"