Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Have VB Code "on" for all workbooks
I have the following code in my personal workbook. How can I get the VB code
to work in all workbooks or do I have to make an add-in? Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.EnableEvents = False Union(Target.EntireColumn, Target.EntireRow).Select 'Target.EntireRow.Select Target.Activate Application.EnableEvents = True End Sub Also, can you change the color? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Have VB Code "on" for all workbooks
Hi,
I'd go with Chip Pearson's rowliner addin http://www.cpearson.com/excel/rowliner.htm -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "PBG" wrote: I have the following code in my personal workbook. How can I get the VB code to work in all workbooks or do I have to make an add-in? Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.EnableEvents = False Union(Target.EntireColumn, Target.EntireRow).Select 'Target.EntireRow.Select Target.Activate Application.EnableEvents = True End Sub Also, can you change the color? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple "source" workbooks linked to single "destination" workboo | Excel Worksheet Functions | |||
problem with Linking workbooks via "copy" and "paste link" | Excel Discussion (Misc queries) | |||
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" | Excel Programming | |||
"Subscript out of range" error for: Workbooks("Test1.xls").Save | Excel Programming | |||
How to use VBA to copy this code to "thisworkbook" objects of all opened workbooks ? | Excel Programming |