bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I have to create some PDF documents from a mail merge. In Excel, I have a list of individual names that copied individually into the word input box (part of a word macro).
What I would like to do in Excel is to copy a cell, highlight it yellow (to show that I've copied the name to word) and then go down one row.
I will be pasting the name from Excel to Word via the Input box in the word macro. I just turned on the macro recorder to demonstrate what I want this macro to do but I would like to attach it to either a worksheet or workbook event:
I need to fix this line so that will go down onecell based upon where I have the cursor (not based on A1):
ActiveCell.Offset(1, 0).Range("A1").Select
I was thinking about using the before rightclick or doubleclick events but would this be the best place to put it?
Thank you for your help,
Michael
What I would like to do in Excel is to copy a cell, highlight it yellow (to show that I've copied the name to word) and then go down one row.
I will be pasting the name from Excel to Word via the Input box in the word macro. I just turned on the macro recorder to demonstrate what I want this macro to do but I would like to attach it to either a worksheet or workbook event:
Code:
Selection.Copy
Application.CutCopyMode = False
With Selection.Interior
.Color = 65535
End With
ActiveCell.Offset(1, 0).Range("A1").Select
End Sub
I need to fix this line so that will go down onecell based upon where I have the cursor (not based on A1):
ActiveCell.Offset(1, 0).Range("A1").Select
I was thinking about using the before rightclick or doubleclick events but would this be the best place to put it?
Thank you for your help,
Michael