JennyLyons
New Member
- Joined
- Dec 18, 2017
- Messages
- 6
Hello! My name is Jenny and I am working on some code that will insert 6 rectangle shapes based on corresponding length and width values that are in 12 separate cells. I got the code figured out to do this, but the calculation doesn't seem to 100% be working. I realized that VBA reads things in pts. Therefore, I used a formula to transition the length/width values that were in inches into points (I just multiplied the value by 72). The problem is that it isn't inserting shapes that are the correct size. You can really see this when I make all 6 shapes into what should be perfect squares. When the shapes are inserted, not all 6 squares are "perfect". In the file attached, you will see that when you click on Rectangles 1-4, their heights are .01 off. Rectangle 5 and 6 seem to be fine.
Can anyone help me fix this? I welcome any ideas and suggestions. Thank you!
Link to file: https://drive.google.com/file/d/1vXfO06sX_Ud51Jcinmp7mOolfwMEtN5u/view?usp=sharing
Can anyone help me fix this? I welcome any ideas and suggestions. Thank you!
Link to file: https://drive.google.com/file/d/1vXfO06sX_Ud51Jcinmp7mOolfwMEtN5u/view?usp=sharing