Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've searched this forum but haven't found an answer to this. This should be
a simple task to perform. I'm also not versed in writing Excel macros. I'm trying to record a macro that will take the contents of a cell and append it to the contents of another cell in the same row. I've enable relative addressing so it would work on any row, but the pasted contents is always the contents of the target cell when the macro was recorded. The keyboard sequence that works is: F2; CTRL-SHIFT-HOME; CTRL-C; TAB; TAB; F2;CTRL-V the macro captured is: Sub Macro1() ' ' Macro1 Macro ' Macro recorded 8/10/2006 by John E. Spiter ' ' Keyboard Shortcut: Ctrl+w ' ActiveCell.FormulaR1C1 = "" ActiveCell.Offset(0, 2).Range("A1").Select ActiveCell.FormulaR1C1 = "Brownbag_final_files/slide0194.htm" <--- Note the hard cell contents here€¦. With ActiveCell.Characters(Start:=1, Length:=34).Font .Name = "Arial" .FontStyle = "Regular" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = xlAutomatic End With ActiveCell.Offset(1, -2).Range("A1").Select End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to save file in a macro taking new name from cell contents? | Excel Discussion (Misc queries) | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Row Expansion | Excel Worksheet Functions | |||
Macro to remove contents of cell and move all other contents up one row | Excel Discussion (Misc queries) | |||
How can I edit cell contents with a macro in Excel? | Excel Discussion (Misc queries) |