Connect Two Circles

Feb 28, 2008

Im writing a program in VBA excel that displays two circles in excel spreadsheet, these two circles have been set X and Y Co - ordinates. Using the X and Y Co - ordinates i want to connect a line from shape 1 to shape 2

ActiveSheet.Shapes.AddLine(495.75, 234#, 682.5, 234#).Select

View 3 Replies


ADVERTISEMENT

Drawing Circles And Other Shapes?

Jun 16, 2013

I want to draw circles from 3 points and other geometrical shapes. The points will be given from clicks on the background picture.

View 1 Replies View Related

Macro To Draw Colored Circles

Sep 9, 2008

I've recently come across this wonderful site and have found it to be a pool for great information. I looking for some assistance with finding a macro that will draw circles/dots on a worksheet when the left mouse button is clicked at the mouse cursor location. There may be something out there already??? Here's exactly what I need; I want a macro that will draw 7 different coloured circles (blue, pink, cyan, lime green, red, yellow, and orange) on a worksheet. The macro would be activated from a button (7 different buttons- one for each colour) on the worksheet and when the left mouse button is clicked the coloured circle is drawn at the mouse cursor location.

View 9 Replies View Related

Plotting Circles On Vertices Of Triangle Governed By Cosine Rule?

Mar 9, 2013

How to plot circles via vb. Basically I would like to plot circles on the vertices of a triangle with the following data.

1) length a = 69, b=103, c=119.9967, angle between a and b =86.1. (These values are determined from the cosine rule)

2) Diameter D1=40,D2=98, D3=108

See link of circles : IMAG0176.jpg

View 9 Replies View Related

Connect 2 Listboxes

Feb 28, 2014

I have a userform with a listbox that has 6 columns (D2:I50) which works great. In column J (J2:J50), I have data which needs wrapping so I plan on putting it in its own listbox. Is it possible to have another list box but one that operates as the first one is scrolled?

View 2 Replies View Related

Connect Nested Ifs

Jul 1, 2008

I have more than seven if statements but don't know how to connect them.

works
=IF(C2=$A$2,13,IF(C2=$A$3,7,IF(C2=$A$4,5,0)))works
IF(C2=$A$4,,IF(C2=$A$5,3,IF(C2=$A$6,3,IF(C2=$A$7,3,IF(C2=$A$8,3,IF(C2=$A$9,3,IF(C2=$A$10,3,IF(C2=$A$11,3,0))))))))can these be connected? they work for me separately but not all in one.

I've tried Named but that doesn't work because there are way too many things I need to do w/ it.

View 9 Replies View Related

Connect To Access Database

Nov 6, 2007

I was trying to move data from excel to access database in VBA. not sure if this has been done before.

What i have got at the moment is that there are some data in excel spreadsheet that i can dump into the table in the access database. My problem here is i need to be able to open the database first, set up connection, and then perform SQL insert query command.

So in the worksheet, i have a button with the following codes in it
so far i could just manage to open the database as follows

View 13 Replies View Related

Connect Direct To The Newsgroup

Nov 25, 2005

Is there a way to connect direct to the newsgroup below via OE6:
microsoft.public.excel.worksheetfunctions
It doesn't appear in the newsgroups' list ..

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--

View 13 Replies View Related

Connect To Access Using ODBC

Apr 17, 2009

how to do this with Java but not VBA, I have the capability of understanding it I just need to know where to look because I can't seem to find any solid information on the net from my searches. Does anyone have any websites, other threads or anything they could direct me to for this kind of thing.

I was contemplating putting this in the Access thread but I want to connect to Access through Excel so I think it fits both.

My plan is to use a macro to send specific cells to five seperate tables in an Access database using VBA and SQL.

View 9 Replies View Related

Checkbox Won't Connect To Linkedcell

Apr 4, 2007

I've created a button on a sheet that triggers the creation of a checkbox on the ActiveCell. I also want the checkbox to link to the activecell in order to use the TRUE or FALSE values in an AutoFilter. I used the following code, but the checkbox doesn't link to the ActiveCell. I thought it might be because the LinkedCell = "TEXT" whereas a Range isn't text?

Sub AddHoekCheckBox()
Dim MyRange As Range
Dim CBLeft As String, CBTop As String, ctlName As String
Dim cbObj As OLEObject
Dim MyDoc As Worksheet
Set MyRange = ActiveCell
CBLeft = CallByName(MyRange, "left", VbGet) + 0.25 * CallByName(MyRange, "Width", VbGet)
CBTop = CallByName(MyRange, "Top", VbGet)...........................

View 3 Replies View Related

How To Connect To Unix OS On Solaris Server

May 28, 2012

I am trying to get some data on a excel. This data is available on a unix OS solaris server.

The data is available in tabular format on the txt file in the server and i need to populate this data on my excel sheet.

How to connect to unix from excel and how to get the data.

View 1 Replies View Related

Macro To Connect To Infomaker And Run Query

Apr 17, 2014

I'm trying to get my macro to connect to Infomaker and run a query. I have successfully done this in the past by using the record macro function. But, when I try to record the macro and paste the query syntax from Infomaker into the commandtext box of the connection, I get the "too many line continuations" error.

I've been looking at ways to write the code rather than record, but the syntax for the Infomaker queries doesn't seem to mesh well.

The syntax of the query in Infomaker is (copy/pasted, all "'s are necessary):

Code:

SELECT "COMPANY"."CO_NAME",
"COMPANY"."FLAG",
"CO_REF"."CO_VALUE",
"ITEM"."ISSUE ",
"REFERENCE"." ID_VALUE",
MIN(CODE.PROD_CODE)
FROM "COMPANY",

[Code] ........

View 2 Replies View Related

Use SQL To Connect An Excel Document To Database

Feb 26, 2007

Some time ago, a friend of mine told me he didn't use any Pivot Tables at all, due to the imense space they require.

Instead, he made connections between Forms in Excel and the Databases using SQL.

Do you know of any Internet site where I can start to learn something about this?

View 9 Replies View Related

Connect Live Data In Sheet

Dec 30, 2009

How To Connect Live Data in an Excel Sheet?

I want to track changes in some Stocks, I have made a sample file in Excel and would like to make it Live by Connecting it to a website..

However, I do not know how to go about the same?Can some please provide some examples as well as a File if possible explaining how it was done..

View 9 Replies View Related

VBA Code To Connect To BMC Remedy And Fetch Report?

May 9, 2013

I have a requirement to pull report from BMC remedy using VBA. I am sure that many people would have achieved this. .

View 1 Replies View Related

Excel 2010 :: How To Connect To MS SQL 2008R2 Using VBA Coding

Feb 12, 2013

I have 2010 Excel and MS SQL 2008R2.

I'd like to import data from my stored procedure from MS SQL into a cell in Excel....

No pivot.

I looked for a standard coding all over the place - no success.

View 1 Replies View Related

Change SourceData For All Pivots In Workbook While Disconnect / Connect Slicers?

Jan 28, 2014

I have 6 Slicers in called "Quantrix" The slicers are called REG, DIRECTOR, AREA MANAGER, AOI, DMA, AG and CLOCK. I have 15 pivots (6 in Quantrix tab and 9 in a tab called "Pivots").

I have vba code to update all pivot cache (showing 1 pivot update below) ...

PHP Code: 

    Max = Sheets("eLink_Raw").Cells(Rows.Count, "A").End(xlUp).Row
    Sheets("Quantrix").PivotTables("Quantrix 1").ChangePivotCache ActiveWorkbook. _
      PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
      Sheets("eLink_Raw").Range("A1:AW" & Max).CurrentRegion _
      , Version:=xlPivotTableVersion14) 

Here is the code to disconnect SLICER, update source data for ALL pivots then reconnects slicer... This works great but its ONLY 1 SLICER

PHP Code: 

 Dim vPivots As Variant
    Dim i As Long
    Max = Sheets("eLink_Raw").Cells(Rows.Count, "A").End(xlUp).Row
    With ActiveWorkbook.SlicerCaches("Slicer_REG").PivotTables

[Code] .....

How can i disconnects ALL Slicers, change source data for ALL Pivots then reconnect ALL slicers?

View 14 Replies View Related

Excel 2010 :: VBA Code To Connect To SQL And Pull Records To New Worksheet

Oct 18, 2012

i found this code...

Code:
Sub Button1_Click()
Dim cnt As ADODB.Connection
Dim rst As ADODB.Recordset
Dim stSQL As String
Dim SNfound As String
'Your sqlserver 2008 connection string
Const stADO As String = "Provider=SQLOLEDB.1;" & _
"" & _

[code].....

but i dont see where to put in the Database object...

The Database it needs to connect to in SQl is called

The Server name is SQLSRV when you expand databases the database is called SWHSystem the Table is called dbo.Credential and from that i need to get SELECT All from the Name and CardNumber from dbo.Credential and put that in a New Sheet titled Personal

using Excel 2010 connecting to SQL 2008

View 4 Replies View Related

Hierarchy Chart - Connect 1st Tier To 3rd Tier

Jun 21, 2014

I have a ppt chart with several tiers as you can see in attachment. Can I connect 11 to 12? Tier 1 to tier 3?

View 1 Replies View Related

Finding The Sum For Values In One Column That Are Connect To A Value In The First Column

Feb 10, 2009

I have two columns. One column has UPCs - some of which are duplicates. The second column just has number values. I'm trying to add the sum of all of the numbers in column two which are attached to their respective UPC. For example,

COL A///// Col B
11111111111///// 10
00000000000///// 15
11111111111///// 10
11111111111///// 4
00000000000///// 2

So, I need a third and fourth column to give me the total value for a single SKU(col A) of all the values in col B. In this example the Third column would contain the SKU, and the fourth column would contain the sum of all values in column B that are associated with the single SKU in column three. The third and fourth column would look like this:

COL C///// COL D
11111111111///// 24
00000000000///// 17

View 2 Replies View Related







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