Trying to offset to another sheet

andrewb90

Well-known Member
Joined
Dec 16, 2009
Messages
1,077
Hello all,

I have this that I can't seem to succesfully apply an offset to:

Code:
Sub CellToComment()Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
Set NoteRng = Range("S89:S100").SpecialCells(xlCellTypeVisible)
For Each Rng In NoteRng
    Rng.NoteText Text:=Rng.Value
    'Need to Offset to sheet "Listing" in Column D
Next
End Sub

I'm just trying to just the cell values as comments in column D on sheet "Listing", and I can't quite seem to get it right. Any assistance would be greatly appreciated.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Is this what you want

Code:
Rng.NoteText Text:=Sheets("Listing").Range("D" & Rng.Row)
 
Upvote 0
That didn't quite do it. That took the values of the Column D on the current sheet and commented them within my range in column S
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,576
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top