Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hiya i have been reading up and following suggestions by other users however
this has meant that i am using more then one VBA on my worksheet. which results in an error when system tries to activate the VBA error message displays (ambigiuos name detected) is there a way to get both or, more then one VBA with same name on a sheet? Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Range("A2"), Target) Is Nothing Then Exit Sub End If Dim s As String s = Range("B2").Value ActiveWorkbook.FollowHyperlink Address:=s End Sub Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False Cells.EntireColumn.AutoFit Application.EnableEvents = True End Sub also how do you put a VBA into a workbook/ excel so i don't have to copy paste the same VBA on every page? again this will probably have more then one VBA in it -- deejay |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PUTTING VBA'S TOGETHER | Excel Worksheet Functions | |||
Conflicting VBA's | Excel Programming | |||
XML equivalent of VBA's XLdown | Excel Programming | |||
Bug in Excel's (not VBA's) MOD function | Excel Worksheet Functions | |||
VBA's Future | Excel Programming |