+ Reply to Thread
Results 1 to 5 of 5

Drawing a Six Pointed Star With a VBA Sub

  1. #1
    Registered User
    Join Date
    06-12-2022
    Location
    New Haven
    MS-Off Ver
    Office 365
    Posts
    1

    Drawing a Six Pointed Star With a VBA Sub

    I created a button in an .xlsm Excel file to do this. The button run the code below. I can send anyone the spreadsheet. To use it, enter the length of each side of the star in cell E2 and click the button. Make nothing is entered in columns A through D.

    Hope this post helps.

    - Tom

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 06-12-2022 at 01:06 PM. Reason: code tags

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Drawing a Six Pointed Star With a VBA Sub

    Welcome to the Forum TomWellington!

    I have moved your thread because you are offering a tip rather than asking a question.

    You can attach your spreadsheet in this thread. See yellow banner at the top of the page. You cannot send attachments to individuals using private messages.

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 06-12-2022 at 01:07 PM.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-23-2023
    Location
    Boston, MA
    MS-Off Ver
    Newest
    Posts
    2

    Re: Drawing a Six Pointed Star With a VBA Sub

    I am new here, but I don't understand the premise here. I get a lot of Degree, Radions, X, and Y values. But, how does this draw a star?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Drawing a Six Pointed Star With a VBA Sub

    Quote Originally Posted by ThymeBalm View Post
    I am new here, but I don't understand the premise here. I get a lot of Degree, Radions, X, and Y values. But, how does this draw a star?
    Are you asking how to use this code, or are you asking how the algorithm in the code works?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Drawing a Six Pointed Star With a VBA Sub

    I finally got around to running this. It generates the coordinates for the vertices; it does not actually draw anything. You can generate the star if you plot the points in a scatter chart.

    I am puzzling over any practical utility of this but it's interesting.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Condition for sequence of cells greater than pointed value
    By LesliePrabakar in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-03-2017, 07:47 AM
  2. Replies: 0
    Last Post: 07-18-2013, 08:01 AM
  3. Replies: 1
    Last Post: 06-13-2012, 04:18 PM
  4. Sum/match function error (pointed date cell)
    By Ramzes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2010, 07:37 AM
  5. [SOLVED] I have been pointed in the direction of a checkbox event
    By Barker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2006, 08:00 PM
  6. Creating a regular six pointed star.
    By Peter Rooney in forum Excel General
    Replies: 14
    Last Post: 10-10-2005, 10:13 AM
  7. [SOLVED] How do I trace which cell a #REF! error pointed to?
    By Dan E in forum Excel General
    Replies: 21
    Last Post: 02-18-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1