Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
can anybody help me...i have 3 columns and i need a comment "Audit" ini column D in every 11th row.Is it possible to have any formula or VBA for this.... regards, rkp |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try
Sub MyMacro() Dim lngRow As Long For lngRow = 11 To Cells(Rows.Count, "D").End(xlUp).Row Step 11 Range("D" & lngRow).AddComment "Audit" Next End Sub -- Jacob (MVP - Excel) "Radhakant Panigrahi" wrote: Hi, can anybody help me...i have 3 columns and i need a comment "Audit" ini column D in every 11th row.Is it possible to have any formula or VBA for this.... regards, rkp |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try the below version instead..
Sub MyMacro() Dim lngRow As Long For lngRow = 11 To Cells(Rows.Count, "D").End(xlUp).Row Step 11 If Range("D" & lngRow).Comment Is Nothing Then Range("D" & lngRow).AddComment "Audit" End If Next End Sub -- Jacob (MVP - Excel) "Jacob Skaria" wrote: Try Sub MyMacro() Dim lngRow As Long For lngRow = 11 To Cells(Rows.Count, "D").End(xlUp).Row Step 11 Range("D" & lngRow).AddComment "Audit" Next End Sub -- Jacob (MVP - Excel) "Radhakant Panigrahi" wrote: Hi, can anybody help me...i have 3 columns and i need a comment "Audit" ini column D in every 11th row.Is it possible to have any formula or VBA for this.... regards, rkp |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comment | Excel Discussion (Misc queries) | |||
copy comment content to cell content as data not as comment | Excel Discussion (Misc queries) | |||
How can I edit a comment w/o first having to select Show Comment | Excel Discussion (Misc queries) | |||
How do I insert a comment when the Insert:Comment menu is greyed? | Excel Discussion (Misc queries) | |||
a comment plugin & copy paste directly from excel to comment ? fr. | Excel Worksheet Functions |