Results 1 to 1 of 1

Copy comments from closed workbook

Threaded View

  1. #1
    Registered User
    Join Date
    02-09-2005
    Posts
    3

    I want to copy comments from closed workbook

    I'm trying to import a worksheet from a closed workbook, but I also want the comments. This is what I'm using so far. This works for getting the data from the cells, but not the comments. I did not write this code. I found it on the WEB. I'm open to suggestions. Can anyone help me.

    Sub PullInSheet1()
    Sheet2.Cells(1, 1) = "= 'G:\[firmware.xls]Sheet 1'!RC"

    With Sheet2.Range("A1:T130")
    'If the cell in Sheet1 of the closed workbook is not _
    empty the pull in it's content, else put in an Error.
    .FormulaR1C1 = "=IF('G:\[firmware.xls]Sheet 1'!RC="""",NA(),'G:\[firmware.xls]Sheet 1'!RC)"
    '.Comment.Text = "='G:\[firmware.xls]Sheet 1'!RC"
    'Delete all Error cells
    On Error Resume Next
    On Error GoTo 0
    'Change all formulas to Values only
    .Value = .Value

    End With
    End Sub


    Thanks

    HuggyBear
    Last edited by HuggyBear; 02-10-2005 at 11:13 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1