ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Absolute / Relative References (https://www.excelbanter.com/excel-programming/335414-absolute-relative-references.html)

Tim Mills

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


FSt1

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


Bob Phillips[_6_]

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