Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.