• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Excel 2003 Macro Question

Piano Man

Diamond Member
Well, looks like I got stuck doing some invoices at work since our CIO had a hissy fit about some unrecorded expenditures in the IT department. So know I'm getting huge excel spreadsheets. As I was doing these manually, I was thinking to myself and I figured that since all the info that I need is right there, I can just make some macros to automate it. Would save me literally hours a week. So I figured out how to make macros that calculates expenses, but I need to do the following:


I want a macro that will highlight columns A thru E depending on what line I have selected. Is there such a way to do this?

Right now, it will only do it for a specific Row. I want this macro to move with me depending on the row I'm on. The columns will alwasy remain the same, though.


Here is the macro I have now:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 3/22/2006 by ***
'
' Keyboard Shortcut: Ctrl+q
'
Range("A1:E1").Select
With Selection.Interior
.ColorIndex = 35
.Pattern = xlSolid
End With
End Sub


--------------------------------------------------------


The problem with this is that it is only for row 1. I need it to move with me depending on the row I have highlighted. Any help would be great. Thanks in advance.
 
Back
Top