ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Creating Macro to copy information from cell into another cell using Add Comments (https://www.excelbanter.com/excel-programming/374457-creating-macro-copy-information-cell-into-another-cell-using-add-comments.html)

pmipalma

Creating Macro to copy information from cell into another cell using Add Comments
 
Hi,

I want to create a macro that will pick up a range of cells aa19:aa95
In these cells there is a formula
=IF($E19="YES",VLOOKUP($C19,'Brand Detail'!$A$1:$P$5000,AA$6,FALSE),"")
for example

I want to add comments transfering the information (TEXT) to column
(G)

How should the macro coding look like to do this?

Many thkx for your answer
Steven


Tom Ogilvy

Creating Macro to copy information from cell into another cell usi
 
Sub BBB()
For Each cell In Range("I1:I3")
Cells(cell.Row, "G").NoteText Text:=cell.Text
Next
End Sub

--
Regards,
Tom Ogilvy


"pmipalma" wrote:

Hi,

I want to create a macro that will pick up a range of cells aa19:aa95
In these cells there is a formula
=IF($E19="YES",VLOOKUP($C19,'Brand Detail'!$A$1:$P$5000,AA$6,FALSE),"")
for example

I want to add comments transfering the information (TEXT) to column
(G)

How should the macro coding look like to do this?

Many thkx for your answer
Steven



pmipalma

Creating Macro to copy information from cell into another cell usi
 
Perfect Many thanks

You made my day

Works perfectly

Tom Ogilvy schreef:

Sub BBB()
For Each cell In Range("I1:I3")
Cells(cell.Row, "G").NoteText Text:=cell.Text
Next
End Sub

--
Regards,
Tom Ogilvy


"pmipalma" wrote:

Hi,

I want to create a macro that will pick up a range of cells aa19:aa95
In these cells there is a formula
=IF($E19="YES",VLOOKUP($C19,'Brand Detail'!$A$1:$P$5000,AA$6,FALSE),"")
for example

I want to add comments transfering the information (TEXT) to column
(G)

How should the macro coding look like to do this?

Many thkx for your answer
Steven





All times are GMT +1. The time now is 10:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com