#1   Report Post  
Dave Peterson
 
Posts: n/a
Default

Debra did nice work. I only copied and made some minor changes.

But I'm sure she appreciates the thanks.

ps. You may want to bookmark her site. It's full of lots of nice info.

HJC wrote:

WOW - that is fantastic - works like a charm - just what I needed! I truly
appreciate your help with this - I know just enough to be dangerous so am
really happy to have your help!!

"Dave Peterson" wrote:

I was confused about the word "comments".

Borrowing heavily from Debra's code:

Option Explicit
Sub CopyValuesToWord()

Dim myRng As Range
Dim myCell As Range
Dim WdApp As Object

Set myRng = Selection 'or whatever range you want...

On Error Resume Next
Set WdApp = GetObject(, "Word.Application")
If Err.Number < 0 Then
Err.Clear
Set WdApp = CreateObject("Word.Application")
End If

With WdApp
.Visible = True
.Documents.Add DocumentType:=0

For Each myCell In myRng.Cells
.Selection.TypeText myCell.Value
.Selection.TypeParagraph
Next
End With

Set WdApp = Nothing

End Sub




HJC wrote:

Thank you - that is a good thought; unfortunately the macro works only on
comments that are inserted into a spreadsheet - what I am looking for is
something similar that bring text written into a cell into a word document.

"Dave Peterson" wrote:

Visit Debra Dalgleish's site:
http://www.contextures.com/xlcomments03.html#CopyToWord

HJC wrote:

I have an online survey which puts all of the results into a SS; some of the
survey responses are numbers, which are easy to deal with; some of the
responses are in "essay" form - is there a way to "extract" those comments
either from the whole worksheet or one line at a time and have it go into a
word file?

Many thanks!!

--

Dave Peterson


--

Dave Peterson


--

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
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM
Can I reference comments by Cell Name? flo1730 Excel Discussion (Misc queries) 5 June 15th 05 03:34 PM
Comments LilLiz Excel Discussion (Misc queries) 2 April 2nd 05 12:18 AM
How do I export comments into another excel column as cell content Hernan Excel Worksheet Functions 1 February 25th 05 02:17 PM
Extract specific data into its own workbook via macro? Adrian B Excel Discussion (Misc queries) 2 February 24th 05 06:09 AM


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