-
-
Welcome to the forum!
I don't see the problem. The Sub xlBorders provided in the kb article, http://www.vbaexpress.com/kb/getarticle.php?kb_id=499, is pretty straight forward. Just put the Sub into a module or copy the whole module as use what you need.
Like the examples, just tell your Sub to call it and pass the 3 required input parameters. For example, inserting an ActiveX commandbutton via the Developer tab, the code for the active sheet's used range would be:
[VBA]Private Sub CommandButton1_Click()
xlBorders ActiveSheet.UsedRange, "thick", "thin"
End Sub[/VBA]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules