Absolute / Relative References
Hi
I'd like to start a process on 6 adjacent highlighted cells but "ActiveCell" just changes the top left cell - how can I change this code to include all 6? TIA Tim ActiveCell.Select Selection.Font.Italic = True With Selection.Borders(xlEdgeTop) .LineStyle = xlDouble .Weight = xlThick .ColorIndex = xlAutomatic |
Absolute / Relative References
hi,
Range(activecell, activecell.offset(0,6)).select FSt1 "Tim Mills" wrote: Hi I'd like to start a process on 6 adjacent highlighted cells but "ActiveCell" just changes the top left cell - how can I change this code to include all 6? TIA Tim ActiveCell.Select Selection.Font.Italic = True With Selection.Borders(xlEdgeTop) .LineStyle = xlDouble .Weight = xlThick .ColorIndex = xlAutomatic |
Absolute / Relative References
Just remove the activecell.select statement.
-- HTH RP (remove nothere from the email address if mailing direct) "Tim Mills" wrote in message ... Hi I'd like to start a process on 6 adjacent highlighted cells but "ActiveCell" just changes the top left cell - how can I change this code to include all 6? TIA Tim ActiveCell.Select Selection.Font.Italic = True With Selection.Borders(xlEdgeTop) .LineStyle = xlDouble .Weight = xlThick .ColorIndex = xlAutomatic |
All times are GMT +1. The time now is 01:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com