Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default offset to column A current row

any ideas how i can do this? I have the following macro to highlight a
series of cells, but for it to work correctly, the first step needs to
be to select the first cell in the current row.

thanks


ActiveCell.Offset(0, 0).Range("A1:M1").Select
Selection.Interior.ColorIndex = 15
ActiveCell.Offset(1, 0).Range("A1").Select
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default offset to column A current row

Do you mean so that the colouring only starts at a cell with a value?

Can you give an example?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
...
any ideas how i can do this? I have the following macro to highlight a
series of cells, but for it to work correctly, the first step needs to
be to select the first cell in the current row.

thanks


ActiveCell.Offset(0, 0).Range("A1:M1").Select
Selection.Interior.ColorIndex = 15
ActiveCell.Offset(1, 0).Range("A1").Select



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default offset to column A current row

I am really not clear on what you want to do and the code you posted give me
no help.

Perhaps this???
cells(activecell.row, "A").Interior.ColorIndex = 15
--
HTH...

Jim Thomlinson


" wrote:

any ideas how i can do this? I have the following macro to highlight a
series of cells, but for it to work correctly, the first step needs to
be to select the first cell in the current row.

thanks


ActiveCell.Offset(0, 0).Range("A1:M1").Select
Selection.Interior.ColorIndex = 15
ActiveCell.Offset(1, 0).Range("A1").Select

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default offset to column A current row

activesheet.cells(activecell.row,1).select

Or maybe you really want:
Activecell.entirerow.range("a1:M1").Interior.Color Index = 15



wrote:

any ideas how i can do this? I have the following macro to highlight a
series of cells, but for it to work correctly, the first step needs to
be to select the first cell in the current row.

thanks

ActiveCell.Offset(0, 0).Range("A1:M1").Select
Selection.Interior.ColorIndex = 15
ActiveCell.Offset(1, 0).Range("A1").Select


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OFFSET COLUMN() ROW() - what does this mean? foxyfmu Excel Worksheet Functions 1 December 21st 10 09:38 PM
column offset problem Janis Excel Programming 0 July 24th 07 12:54 AM
Offset from a variable column to a fixed column Kurt Barr Excel Programming 2 June 27th 06 05:45 PM
???? =offset(ADDRESS(ROW(),COLUMN()),1,1,1,1) Creator Excel Worksheet Functions 5 February 17th 06 02:16 PM
offset every nth column Sampson Excel Worksheet Functions 2 February 27th 05 06:07 PM


All times are GMT +1. The time now is 05:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"