MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.
Sub CreateSalesTables() Dim rngFound As Range Dim strAddy As String Dim lngCounter As Long Set rngFound = ActiveSheet.UsedRange.Find(what:="Sales", LookIn:=xlValues, lookat:=xlWhole, MatchCase:=False) If Not rngFound Is Nothing Then lngCounter = 1 strAddy = rngFound.Address Do CreateTable rngFound.CurrentRegion, "Table" & lngCounter lngCounter = lngCounter + 1 Set rngFound = ActiveSheet.UsedRange.FindNext(rngFound) Loop While rngFound.Address <> strAddy End If End Sub Sub CreateTable(rng As Range, strName As String) With rng.Worksheet.ListObjects.Add(xlSrcRange, rng, , xlYes) .Name = strName 'No go in 2003 .TableStyle = "TableStyleLight2" End With End Sub
|Need a Excel macro modified to create a pivot table after the Filtered sheet is created||6||27|
|How to bypass VBA Project password||5||49|
|How to Get a Count of Unique Values and paste them on a different tab||3||17|
|Cost allcocation ...||10||22|