App To Draw Curved Shape To Scale With Drag & Drop Capabilities

Dec 13, 2006

I am researching the possibility of using Excel 2003 WITHOUT a Cad or Drawing package to simulate a drawing. (Consultants inquiries are WELCOME). The idea is to prompt the user (Sales Rep or Customer) for a few key dimensions and then plot out a closed curve based on the coordinantes entered. This shape, which would need to be accurately scaled, would then be sectioned and used as a canvas for dragging and dropping various icons.

Why use Excel instead of CAD?

Other than "everyone" having it, the placement of the "icons" relative to the perimeter of the curve will be used to estimate material costs and generate a quotation like a configurator application.

Key hurdles seem to be the drawing of a curve with cells as pixels and using drag & drop with custom icons - possible as an Add-In?

View 9 Replies


ADVERTISEMENT

Using Data Stored In A Variable To Draw A Shape

Jun 18, 2014

I have some code, in one part of it I am storing a number (between 1 and 8) as Integer. Is it possible to reference this variable to draw some rectangles on a sheet, sort of

"If MonitorDetail (this is the name of the variable) .value = 2 then

Here I place the code to draw the rectangle on the page. The macro currently stops at Monitordetail with a error telling me its a "Invalid Qualifier".

View 1 Replies View Related

Right Click Button That On Action Draw Rectangular Auto-Shape?

Nov 2, 2012

I have a bit of code that I saved as an add-in. The code does a couple things: (1) Creates a right-click button that on action (2) draws a rectangular auto-shape that is the size of any selected range.

The add-in seems to loaded correctly.

However, when I launch a new excel sheet, my intent was to have the code (the right click option) be available whenever I opened Excel.

Is there another step to accomplish this?

View 7 Replies View Related

Stop Drag And Drop Across A Row

Jan 14, 2010

How can I stop drag and drop across a row but you can drag and drop down a column.

View 14 Replies View Related

Drag & Drop Between Workbooks

Jun 3, 2008

When I drag a text file from my desktop into an existing Excel worksheet it automatically creates a new workbook. I'd like to know how to modify this such that I can drop the file into my existing worksheet (and not have a new workbook create) and then run some VBA macros on it.

View 3 Replies View Related

Drag And Drop Of Non Sequential Cells?

Jun 20, 2014

Drag & Drop Example.xlsx

In the example attachment on the weekly tab, you will see I have daily totals and a sum for weekly. On the summary tab I have the columns going down with a link to the weekly totals.

I have over 5 years of data in this format and don't want to link each cell in one sheet to another. If I drag and drop, obviously the weekly doesn't come down correctly.

Is there another way as I don't want to have to do this for over 250 weekly totals (and counting) manually.

View 3 Replies View Related

Listbox Multiselect Drag & Drop

Aug 18, 2007

I've finally gotten the code down to drag an item from one list box and drop it into another listbox, but only for one item at a time. The list boxes are on a user form and I am using Excel 2002.

how to select multiple items in ListBox1, drag them to and drop them into ListBox2?

View 9 Replies View Related

Drag-and-drop To Trade Cells

Apr 29, 2006

I have a spreadsheet where I often have to exchange pairs of cells. I currently do this by dragging Cell A to a blank portion of the sheet, dragging Cell B to Cell A's former location, then dragging Cell A to Cell B's former location. I was just thinking that I might be able to use VBA to allow me to drag Cell A to Cell B and have them "trade places".

I don't even know what events are involved in the dragging process so I don't know where to start.

View 7 Replies View Related

Allow Drag & Drop For UserForm Image

Nov 1, 2006

I am looking to if there is anyway to move an image box using a mouse drag and drop action. I have put together a little example of what I am trying to work with and was wondering if anyone on here had any tricks to make this work.

I realise the drag and drop method only applies to the textbox and listbox but have seen some old code that can simulate the drag and drop by creating a border of some sort to illustrate where the image box is going to be placed and final just setting the properties of that image box to where the border is placed.

In the example type in a size in the width and height textboxs (I used 3000,3000) and then what I want to do from there is move the white box using the mouse within the blue box.

View 3 Replies View Related

Drag Drop Treeview Node

Jan 10, 2007

I was trying to drag a node onto a worksheet and for that node to remain in the treeview control.

I have found out that if I hold the CTRL key then the node remains on the treeview.

Does anyone know how I can implement this action in my code so I don't have to keep pressing the control key?

View 9 Replies View Related

Modified Drag And Drop Via Left Click

Mar 23, 2013

I am wondering if it is possible to drag & drop, via left-click, the data in a cell but WITHOUT affecting it's reference -- i.e., like "Copy here as values only".

View 1 Replies View Related

Code To Disable Cut And Paste / Drag And Drop

Dec 5, 2013

Which code is "better" to disable D&D, C&P....

Private Sub Workbook_Activate()
Application.CutCopyMode = False
Application.OnKey "^c", ""
Application.CellDragAndDrop = False
End Sub
Private Sub Workbook_Deactivate()

[Code] .......

OR This one:

Option Explicit
Private Sub Workbook_Activate()
With Application
.CutCopyMode = False
.CellDragAndDrop = False

[Code] ........

I noltice that one uses "Option Explicit" and one doesn't, one seems to be longer than the other, but when I tested both, they both seem to do the same thing. I did notice that neither one of them prevents a "paste" into the worksheet when something is copied from an outside source, but that is not a concern right now!!!

View 3 Replies View Related

Override Cell Drag & Drop Behavior

Oct 13, 2007

For example. Dragging c7 to e5.

My range before dragging and dropping...

After the drop.

What do you think? I think it can be done but do not want to waste time going about it the wrong way. Please give me any ideas on how you would approach this problem.

Some information to start with. The modal dialog that pops up can be dealt with.

This one.

I can determine if I want to insert down or up. I am not concerned with shifting left or right at this point.

I can also determine the original address and destination address of the drag and drop operation by using the change event.

The ranges being dragged will be limited to a single cell.

View 9 Replies View Related

Disable & Re-Enable Fill Handle & Drag-and-Drop

Jun 19, 2008

I've created a macro to disable cut-copy-paste and drag-and-drop (below), but when the user exits Excel, the drag-and-drop option remains turned off.

The user has to click on the Office button, go to Excel Options, Advanced tab, and re-enable the fill handle manually. How can I have my macro do this automatically when the workbook is closed?

'*** In a standard module ***
Option Explicit

Sub ToggleCutCopyAndPaste(Allow As Boolean)
'Activate/deactivate cut, copy, paste and pastespecial menu items
Call EnableMenuItem(21, Allow) ' cut
Call EnableMenuItem(19, Allow) ' copy
Call EnableMenuItem(22, Allow) ' paste
Call EnableMenuItem(755, Allow) ' pastespecial

'Activate/deactivate drag and drop ability
Application.CellDragAndDrop = Allow

'Activate/deactivate cut, copy, paste and pastespecial shortcut keys
With Application
Select Case Allow
Case Is = False ....................................

View 9 Replies View Related

Disable Paste Function (Including Drag And Drop) On Excel Worksheet

Jun 27, 2014

How can I disable the paste function on an Excel worksheet, including drag and drop?

Preferably I still want to retain the ability to copy.

View 1 Replies View Related

Static Formula Reference: Delete And Drag-and-drop Data To Get Rid Of Any Bogus Values

Jan 10, 2008

I making a template for multiple users to import data into for analysis. I want them to be able to delete and drag-and-drop data to get rid of any bogus values. However i need forumlas that reference those to NOT follow the values as there as moved. As a simple example say you have two columns, column A is a set of random numbers, column B is the number from coumn A times 2. If take the bottom half of column A and drag it up one cell, overwriting a cell, now the cell in column B next to the overwritten cell has a #REF err and ever cell below that now references a Cell in column A from the previous row. I want a formula that references a static address and will not follow the cell if it is moved.

If I use named ranges rather than specific cells references it works for the above example, however for my actual form it does not. Even though the ranges and formulas stay the same I start getting incorrect values. If there is no other way to this I will try to figure why the named ranges do not work.

View 3 Replies View Related

Excel 2010 :: Populate Cells From Listbox Drag / Drop - Can't Find First Empty Row On Worksheet

Feb 1, 2014

I am running Excel 2010 and Windows 7.

I have a form with a main list box and several other list boxes. I drag and drop records from the main list box to the others. When I drop a record onto one of the list boxes, a corresponding worksheet is updated with the same record. This works just fine.

The problem I have is:I close and re-open the form after having added some dataDrag/Drop a record to the list boxThe worksheet won't find the first empty rowExample: If the worksheet already contains 4 rows of data, I have to drag/drop 5 times before the fifth row will be updatedI would like to drop the data the first time and have the first blank row updated

Notes:

1.) I have tried variations of "xlUp", "xlDown", and SpecialCells(xlCellTypeLastCell) in the "Worksheets("Monday")... line of code; all to no avail.

2.) The cells contain formatting (borders)

Here is the relevant code:

Code:

'Copy items from the list box to the worksheet
For intI = 1 To ListBox2.ListCount
For intJ = 1 To ListBox2.ColumnCount
If IsEmpty(Worksheets("Monday").Cells(intI + 1, intJ)) Then
Worksheets("Monday").Cells(intI + 1, intJ).Value = ListBox2.List(intI - 1, intJ - 1)
End If
Next intJ
Next intI

View 2 Replies View Related

Vba Search Capabilities

Feb 7, 2009

I've attached a small sample workbook of what I'm trying to accomplish as it pertains to searching for individual phone and/or direct connect records. I could potentially have thousands of different phone numbers (some of which could be matching over several months worth of data) as well as direct connect numbers. Using a simple filter button for any particular column would contain to many numbers for me to easily identify the number I'd be looking for to filter and would be very time consuming. I started to create a user form for what I'd like to open up via a macro type activation button, which would allow me to search either by phone number or direct connect number.

My thought, if possible would be to have whatever number (either phone or direct connect number) that is typed in the user form and after the search button his clicked, attempt to locate the number via the filtering function and if found automatically filter it by unchecking all of the others non-applicable numbers in either column B or C. Due to having incoming and outgoing numbers the code would have to look at data in columns "B6 and below" and "C6 and below" while maintaining the integrity of the other column data affiliated with each number.

View 7 Replies View Related

Convert Time On Scale Of 100 To Scale Of 60?

Feb 1, 2013

How can we convert time on a scale of 100 to a scale of 60?

View 3 Replies View Related

Get Line In Graph To Become Curved Between 2 Data Points In 10 Point Chart?

Feb 21, 2014

how to get a line in a graph to become a curved line between 2 data points in 10 point chart. I the pictuer attached I am trying to get the line to curve at the second data point 5(ms) and the third data point at 80(ms). The aftr 80 the line become staright again.[IMG][/IMG]

View 3 Replies View Related

Make List With Multiple Selection Capabilities?

Dec 6, 2012

There are multiple training sessions that will be rolling out in Q1 13 and my manager needs a way to track which empolyees have been to which training sessions. Easy enough. He wants something extremely clean looking, but obviously efficient. What he described to me (his vision) is to have the training sessions listed into columns with drop down under each that contain every employee's name. So when a training session is held, he can easily click the drop down beneath the session title and select multiple persons that were in attendance. Right now I just have all the employees listed in column A and all the training sessions listed across the top and anticipated just putting a "x" in the box for the session that each person attends. This will accomplish exactly what he's looking for, but if what he's describing is remotely possible I would like to do that.

View 2 Replies View Related

Change Shape Text Without Selecting Shape

Mar 4, 2009

when i run the below code i get an error 438 'object doesnt support this property or method'

View 2 Replies View Related

Locate A Shape Within A Shape

Jan 24, 2014

On the attached spreadsheet there is two irregular shapes. "Area1" & "Area2". I need to be able to determine which area the "ball" shape is located in. If the ball is in Area1 then "Multiply 8" gets the ball and "Multiply 9" moves to the blue cell "AH39". If the ball is in "AreaB" Multiply 9 gets the ball and "Multiply 8" runs to cell "S37"

I should be able to do the moving of the shapes using all the samples, its determining which area the ball is in is the problem.

In the real spreadsheet i will probably have around 10 different Areas.

Move Two Objects - Select Case.xlsm‎

View 5 Replies View Related

League Cup Draw By Using VBA

Dec 3, 2009

i want to make a cup draw, but i don't want to use RAND, I want to use VBA.

What i want is to make a English Football League Cup, so all 92 leagues teams are in it, but as follows

First Round 72 teams
Second Round 50 Teams
Third Round 32 Teams
Fourth Round 16 Teams
Quarter-Finals 8 Teams
Semi-Final 4 Teams
Final 2 Teams

for a team list see attached excel spreadsheet

If you are not sure what i mean google search English League Cup or try soccerway

I want a command box or similar for each round, i dont want it to change unless i click on the command button again.

i will be inputing the scores myself.

Sorry i forget one team in the First round "Darlington"

View 14 Replies View Related

Random Draw

Dec 1, 2008

I was looking for some code to randomly generate a number for a prize draw I am doing. I found a great piece on this site, which I have slightly changed to give me what I have below.

It works great except for one thing I cannot work out, I have the code below working on cell "C1", I would like it to work in cell "C5", but I can't seem to work this out.

Sub SlotsNum()
Dim w As Long, x As String, y As Long
Randomize
x = Format(Int((Range("B2") - Range("B1") + 1) * Rnd + Range("B1")), "0000")
For y = 1 To 1
For w = 1 To 250
Range("C" & y) = Int(8000 * Rnd)
Next w
Range("C" & y) = CInt(Mid(x, y, 4))
Next y
End Sub

Also, whilst here. i will have one other problem, with it being a prize draw I do not want to draw the same number twice. At the moment I have a small macro that copies the winning name that appears on the main screen (via a vlookup) onto a winners spreadsheet. I am thinking of then creating another macro that replaces the winning name on the master list with an "Already Won" entry, so we can just select again.

View 9 Replies View Related

Draw A Circle

Apr 4, 2009

Ive been trying to draw a circle in excel, although it only draws ovals - Is there a way to draw a circle in excel?

View 9 Replies View Related

Combinations - Win Or Draw

Nov 28, 2009

I'm creating a spreadsheet regarding football teams and want to lis thte combinations of results for each team.

Specifically, if the team will win or draw.

So, I have 6 teams, each team can either win or draw.

I want to display the combinations of team 1 winning AND team 2 winning AND team 3 winning etc.

View 9 Replies View Related

Draw Line On Userform

Jan 22, 2010

Is it possible to add horizontal lines to a user form, like as shown in the attached image. I know about frames, but unsure how to get just one horizontal line.

View 3 Replies View Related

Set Cursor To Draw Connector In VBA

Dec 18, 2012

i have faced a problem i want to draw straight connector using code imagine when you select straight connector to draw line mouse cursor changes when you move it to a node i want to do this with excel vba code without going to shapes and selecting connector.

View 5 Replies View Related

Draw A Border Using Line?

Aug 14, 2013

I'm trying to use VBA to draw a border using the drawing toolbar and using the line. i need it to draw a border around a select area i hightlight.

i have attached a example below, but not sure if it will appear.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved