vbacoder12
New Member
- Joined
- Sep 4, 2024
- Messages
- 41
- Office Version
- 2024
- Prefer Not To Say
- Platform
- Windows
Hi ,
I cannot copy my code into the message at this time. I am going to type n i really apologize. When using code I get the error in the subject. Also it puts the table in a style which is not in the code. Debug highlights set tbl line. Which starts set tbl and ends at 21) if this is too hard to read it can upload image. If I can
Sub FormatATable()
Dim tbl As ListObject
Dim rng As Range
Set rng = Range("A6") Settbl=ActiveSheet.ListObjects.Add(xlSrcRange, Range("A6:Q9000"), , xlYes).Header = No.TableStyle=Green Table Style Medium 21)
End Sub
I cannot copy my code into the message at this time. I am going to type n i really apologize. When using code I get the error in the subject. Also it puts the table in a style which is not in the code. Debug highlights set tbl line. Which starts set tbl and ends at 21) if this is too hard to read it can upload image. If I can
Sub FormatATable()
Dim tbl As ListObject
Dim rng As Range
Set rng = Range("A6") Settbl=ActiveSheet.ListObjects.Add(xlSrcRange, Range("A6:Q9000"), , xlYes).Header = No.TableStyle=Green Table Style Medium 21)
End Sub