<excelunusual.com> Creating, Sizing, Translating and Rotating 2D Shapes in Excel by George Lungu. < 1

Similar documents
Projectile Motion Tutorial #2 - animating the

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. < 1. Introduction: Chart naming: by George Lungu

A casual approach to numerical modeling

Microsoft Excel 2007 Macros and VBA

COPYRIGHTED MATERIAL. Making Excel More Efficient

Excel Rest of Us! AQuick Reference. for the. Find the facts you need fast. FREE daily etips at dummies.com

Starting Excel application

Microsoft How to Series

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically

A Basic Flight Simulator in Excel #4 creating the initial,

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

Advanced Excel Macros : Data Validation/Analysis : OneDrive

Scientific Graphing in Excel 2007

Building a game of Tetris #1 the generation and the rotation of the Tetris parts

Computer Applications Final Exam Study Guide

A Basic Flight Simulator in Excel #3 calculating the

download instant at

Excel 2013 Charts and Graphs

Excel Advanced

Exploring extreme weather with Excel - The basics

EXCEL 2007 GETTING STARTED

VIDYA SAGAR COMPUTER ACADEMY. Excel Basics

This book is about using Microsoft Excel to

Microsoft Excel 2007

Introduction to Microsoft Excel

SPREADSHEET (Excel 2007)

Basic Microsoft Excel 2007

Class #10 Wednesday, November 8, 2017

For more tips on using this workbook, press F1 and click More information about this template.

Microsoft Excel Microsoft Excel

Excel 2010 Level 1: The Excel Environment

Can You Make A Box And Whisker Plot In Excel 2007

Reference Services Division Presents. Excel Introductory Course

Beginning Excel. Revised 4/19/16

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office

239 Excel Keyboard Shortcuts

Excel. More Skills 11 Insert and Edit Comments. To complete this workbook, you will need the following file: You will save your workbook as: CHAPTER 2

Technology Assignment: Scatter Plots

Introducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO

EXCEL BASICS: MICROSOFT OFFICE 2010

1 Introduction to Using Excel Spreadsheets

Microsoft Excel 2016 / 2013 Basic & Intermediate

Scientific Graphing in Excel 2013

Day : Date : Objects : Open MS Excel program * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office.

EXCEL BASICS: MICROSOFT OFFICE 2007

Appendix A Microsoft Office Specialist exam objectives

This chapter is intended to take you through the basic steps of using the Visual Basic

Excel Format cells Number Percentage (.20 not 20) Special (Zip, Phone) Font

Click the buttons in the interactive below to become familiar with the drawing tool's commands.

Macros enable you to automate almost any task that you can undertake

Microsoft Excel Basics Ben Johnson

COMPUTER TECHNOLOGY SPREADSHEETS BASIC TERMINOLOGY. A workbook is the file Excel creates to store your data.

Excel Community SAMPLE CONTENT

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Excel VBA. Microsoft Excel is an extremely powerful tool that you can use to manipulate, analyze, and present data.

Excel Training - Beginner March 14, 2018

Microsoft PowerPoint 2007 Tutorial

This document describes how to use the CAP workbook with Excel It applies to version 6b of the workbook.

Welcome to Introduction to Microsoft Excel 2010

Introduction. Understanding charts. Excel 2016

Introduction to Excel

Using Excel 2011 at Kennesaw State University

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

Table of Contents. Contents

Introduction to Microsoft Excel 2007

HO-1: BASIC SPREADSHEET SKILLS - CREATING A WORKBOOK

Microsoft Word. Teaching 21 st Century Skills Using Technology August 3, Short Cut Keys. Templates

= 3 + (5*4) + (1/2)*(4/2)^2.

Lesson 16: Collaborating in Excel. Return to the Excel 2007 web page

2. create the workbook file

To create a notebook on desktop version 1. Open One Note 2. File > New. o FILE. Options

Excel 2010-Part. Two

Microsoft Excel 2007

Switches between worksheet and menu / Ribbon. Calculates all worksheets in all open workbooks. Highlights shortcut keys of Menu and Ribbon items.

As you probably know, Microsoft Excel is an

WEEK NO. 12 MICROSOFT EXCEL 2007

Microsoft Excel 2016 Training Programme

Saving a Workbook That Contains Macros

HOW TO MAKE A SCATTER PLOT IN MICROSOFT EXCEL

Microsoft Office Excel 2007: Basic. Course Overview. Course Length: 1 Day. Course Overview

Excel 2013 for Beginners

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:

Macros enable you to automate almost any task that you can undertake

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Lesson 18 Getting Started with Excel Essentials

To be able to create charts that graphically represent your worksheet data, you will: Create column charts on chart sheets by using the F11 key.

5. Excel Fundamentals

Creating Automated Dashboard Excel 2013 Contents

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

Gloucester County Library System EXCEL 2007

Inserting or deleting a worksheet

Formatting Spreadsheets in Microsoft Excel

GO! with Microsoft Excel 2016 Comprehensive

Table of Contents. 1. Creating a Microsoft Excel Workbook...1 EVALUATION COPY

ECE 304: Using EXCEL Preliminaries...3 Construction of Spreadsheet...3 Figure 1:...3 FORMAT CELLS menu with selected font settings...

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Tutorial 2/4: Calculations & Functions. Tutorial 1/4: Getting Started. Tutorial 3/4: Statistical Analysis. Tutorial 4/4: Basic Formatting

Transcription:

Creating, Sizing, Translating and Rotating 2D Shapes in Excel 2007 - by George Lungu Most of the models on this blog are designed for Excel 2003 or earlier versions. Sometimes however Excel 2007 or 200 are the only versions available even though they might be far slower when running these models. This presentation is an introduction to Excel 2007. <excelunusual.com> <www.excelunusual.com>

<www.excelunusual.com> 2 Enable the Macros First: Since this is so important, the operation is explained for all versions of Excel: - In Excel 2003 or older: Tools => Macro => Security => Low (or Medium) => OK => Save => Close => Reopen Workbook In Excel 2007: - Right Click the Office Button => Excel Options => Trust Center => Trust Center Settings => Macro Settings => Disable all macros with notification => OK => Save and Close => Reopen Workbook - When you reopen a file with macros if you get a Security Warning do the following: Options => Enable this content => OK In Excel 200 being done in two stages: A) Open File => File => Options => Trust Center => Trust Center Settings => Macro Settings => Enable all macros => OK => OK => Save B) File => Options => Trust Center => Trust Center Settings => Protected View => Disable them => OK => OK => Save => Close => Reopen Workbook

Rename First Worksheet: - Let s open a new Excel 2007 workbook, go to the tab bar, double click the tab of the first sheet and change its name by typing Shapes_ Type in Labels and Data: - Go to the upper left corner of the sheet and type the following six labels (in column B) and the six numbers (in column C) just like in the snap shoot to the right - Next we will create buttons and VBA macros Bring up the Developer Tab in the Ribbon: - Go to the MS Office Orb => Excel Options => Popular => Show the Developer Tab in the Ribbon Create a Spin Button: - Developer => Controls => Insert => ActiveX Controls => Spin Button => Drag draw a button on the sheet <www.excelunusual.com> 3

After you drew the button, while the button is still highlighted right click it and bring up the Properties tab. There, you change the name into Alpha, change Min to - and Max to 75. About the Controls Tab: - Clicking the Design Mode button will bring you in or out of design mode. After you finish changing the button properties you will need to get out of design mode in order to use it. - Instead of right clicking the button you can also bring up the properties by clicking the Properties in the Controls tab. - In 2007 you can bring up the VBA editor by either clicking the View Code button or by using the Alt+F shortcut The first macro (a rotation macro): - This macro will increase or decrease the value of the Private Sub Alpha_Change() rotation angle and will also wrap around 0 degrees while If Alpha > 7 Then Alpha = 0 going down and around 360 degrees while going up. If Alpha < 0 Then Alpha = 7 - After adjusting the properties double click the button (which brings up the VBA editor) and write the following code. [C2] = 5 * Alpha - After finishing, exit the design mode and test the macro <www.excelunusual.com> 4

An outline of all the buttons and macros: The following buttons and macros are created using the same procedure. Here is an outline of the values and code used. Buttons Properties Macro Name Min Value Max Value Alpha - 75 Beta - 75 x0-5 5 Private Sub Alpha_Change() If Alpha > 7 Then Alpha = 0 If Alpha < 0 Then Alpha = 7 [C2] = 5 * Alpha.Value Private Sub Beta_Change() If Beta > 7 Then Beta = 0 If Beta < 0 Then Beta = 7 [C4] = 5 * Beta.Value Private Sub x0_change() [C6] = x0.value Private Sub y0_change() [C8] = y0.value y0-5 5 Height 0 50 Width 0 50 Private Sub Height_Change() [C0] = Height.Value / 0 Private Sub Width_Change() [C2] = Width.Value / 0 <www.excelunusual.com> 5

Creating the rectangle: The charted data for the rectangle is contained in the range B7:C2 (excluding the labels). Below is an insight on how the data is charted from width and height. The data is plotted in a scatter chart. The procedure of plotting the data is not given here, but you can Google it. X Y A Width / 2 Height / 2 B -Width / 2 Height / 2 C -Width / 2 -Height / 2 D Width / 2 -Height / 2 A Width / 2 Height / 2 A => B => C => D => A B A C D Next step: Shape Rotation and Shift: A shape rotation is performed followed by a translation using the formulas to the right. The result is found in the range D7:E2 (see next page). x y x cos( y sin( x x sin( y cos( y Shape Rotation <www.excelunusual.com> 6 0 0 Shift

Shape Rotation and Shift excel implementation: - Range D7:E2 contains the formulas presented in the previous page: D7: =B7*COS(RADIANS(C$2))- C7*SIN(RADIANS(C$2))+C$8 E7: =B7*SIN(RADIANS(C$2))+ C7*COS(RADIANS(C$2))+C$6 - After filling range D7:E7 with the above formulas copy down D7:E7 to row 2 - Change the chart data from B7:C2 to D7:E2 and you can see the results in the snapshot to the left. Next Step : a Scene Rotation: A scene rotation is performed using the formulas to the right. The result is found in the range F7:G2 (see next page). x y 2 2 x cos( y x sin( y sin( cos( <www.excelunusual.com> 7 Scene Rotation

Scene Rotation excel implementation: - Range F7:G2 contains the formulas presented in the previous page: F7: =D7*COS(RADIANS(C$4))- E7*SIN(RADIANS(C$4)) G7: =D7*SIN(RADIANS(C$4))+ E7*COS(RADIANS(C$4)) - After filling range F7:G7 with the above formulas copy down F7:G7 to row 2 - Change the chart data from D7:E2 to F7:G2 and you can see the results in the snapshot to the left. - When you build anything make sure to spend enough time between stages playing with the model to make sure the model performs as expected. - Now that everything is finished you can try to see the global effects of buttons - Even though you might not perceive it in this model, Excel 2007 is much slower than Excel 2003 or earlier versions. I heard MS might have improved on this in the 200 version though I have not tried that version yet. <www.excelunusual.com> 8

<www.excelunusual.com> 9 Conclusion: - Creating basic animation in Excel 2007 was demonstrated - The interface is awkward, unintuitive and as much as I used it, it looks like a step backwards in productivity - Based on what I read on other blogs most of the expert users don t like it - The new users are OK with it - As far as science modeling is concerned, 2007 is a very slow animal, it can be more than an order of magnitude slower than 2003 and it seems that the charting represents the bottleneck in speed Resources: - There are many good books around. The best author seems to be John Walkenbach from www.spreadsheetpage.com - People in a rush who are interested in office applications can also watch the beginner series from: http://www.youtube.com/user/excelisfun. This guy has almost 000 videos and his presentations are really nice.