Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
name range the "comment" cell page1.comment and the "info" cell as page1.info
ad this code to a standard module Option Explicit Sub MoveComment() Dim sComment As String Dim sInfo As String Dim rw As Long With Worksheets("page1") sComment = .Range("page1.comment").Value sInfo = .Range("page1.info").Value End With If sComment < "" And sInfo < "" Then With Worksheets("page2") rw = .Range("A65000").End(xlUp).Row + 1 .Cells(rw, 1).Value = sComment .Cells(rw, 2).Value = sInfo End With End If End Sub for example you could call this automatically using the sheets CHANGE event...test if both cells have data, if they do, call the sub above. "RAP" wrote: Greetings, I have a column labeled COMMENTS on Pg 1. I am attempting to write a macro that will copy the text entered into a cell on Pg 1 comment column, to the next empty cell on a Pg 2 comment column. I also want to copy the info from column 1 of the Pg 1 comment row to another column, same row, as Pg 2 copied comment. Thanks for any help as I start putting the VB "pieces of the puzzle" together. I have a strategy. Now I am working on programming methodology. Thanks, -Randy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to copy a value from another cell by using a one key entry | Excel Discussion (Misc queries) | |||
copy value of cell from last entry in column | Excel Worksheet Functions | |||
Data entry - Copy contents of cell typed in one cell to another ce | Excel Worksheet Functions | |||
Auto-copy the last entry in a column to a new cell | Excel Worksheet Functions | |||
Macro to copy text to a specific cell reference | Excel Programming |