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


ADVERTISEMENT

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

Radio Button Transparency Lost When Clicked, How To Remedy

Jan 23, 2009

I have a form (worksheet with controls embedded in) and the form changes color depending on what the user clicked, problem is that button colors and cell pattern colors don't quite match.

thought I solved it by making the buttons backstyle = transparent.
However, as soon as radio button was clicked, transparency was lost.

I have named the range of the form "FormGround" so that when Service 1 is select, the Form turn a different colour. I have my subsequent buttons change to that same color as well (using the cell's color index number.

View 4 Replies View Related

Summary Report Using VB Code

Dec 1, 2006

I have a report that I need to summarize, here is some sample data.

Dealer CodeParticipantModules
F23CH ROB MASSON10
F23CH ROB MASSON7W
F23CH ROB MASSON8
F23CH ROB MASSON9
F32C5 JOHN COUTTS16
F32C5 JOHN COUTTS17
F32C5 JOHN COUTTS21
F32C8 SCOTT PLAKHOLM7
F32C8 SCOTT PLAKHOLM7S
F32C8 SCOTT PLAKHOLM7W
F32C8 SCOTT PLAKHOLM8

Desired results would be column A Dealer Code, Column B Particpant, Column C a summary of Modules taken, Column D a count of Modules

Ex:
F23CH Rob Masson 10,7W,8,9 4
F32c5 John Coutts 16,17,21 3
F32C8 Scott Plakholm 7,7s,7w,8 4

Is there a easy fix using VB code? The report is usually between 1500 lines and 2000.

View 11 Replies View Related

VBA Code For Extract Report From Tools?

May 1, 2014

VBA code to extract excel report from tools e.g. SAP or other tools.

View 3 Replies View Related

Use VBA Code To Run A Report In Access And Then Save It As PDF?

Jan 13, 2012

Is it possible to use vba code to run a report in Access and then save it as a PDF?

I have a subroutine (well, a combination of subroutines) that copies some data from a spreadsheet into Access.

I then want to be able to run a report based on that data, save it as a PDF and email it out: all automatically.

I don't want the user to have to actually open Access and run the reports, because it's much slower! For some reason Excel can open access, write to tables and close it within a matter of seconds: opening the program manually, editing the table and closing it can take minutes.

View 9 Replies View Related

VBA Code To Change Pivot Table (Report Filter) From Userform Textbox / Combobox

Aug 16, 2013

I've prepared an excel file with a pivot table. Now I would like to change the Pivot "Report filter" by using Textbox on Userform. I've attached an excel file as an example.

View 2 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

Fetch Corresponding Data Value

Dec 8, 2013

I need to fetch corresponding data value from a data set which is spread across the sheet horizontally as well vertically. i need the net sales and net profit figures to fetched to a different worksheet/book. i have quarterly data horizontally and yearly data vertically. Below is a table in a horizontal manner. How to automate or less-time-consuming

Output required as:
period 6-30-2000 9-30-2000
net sales ........ ............
net profit ....... ............

Type
Un-Audited

Date Begin
4-1-2000

Date End
6-30-2000

[Code] ......

View 4 Replies View Related

Data Fetch

Mar 26, 2008

I have a sheet which has certain formulas & charts. I have a folder which has several workbooks of data.

Generally, I open the folder, open one workbook, copy the data, paste it to my Master Workbook, and based on this data, my charts update.

Now, the problem is that, I have to open every workbook one by one, copy and paste it to the master.

I have not less then 210 workbooks. I just want to know if it is possible to open the folder, open the desired workbook, copy the specific data and past it to master workbook, FROM Maste workbook itself.

View 9 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 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 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

Fetch Data From This Webpage

Apr 2, 2009

Fetch data from the table on the page given by the link below..
http://www.moneycontrol.com/stocks/f...l&sort_order=0

View 9 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

Fetch Rows From Workbooks

Oct 11, 2009

copied some of the code from this website. but still i am struggling with coding. it gives error subscript out of race of my sheet name
what is wrong in it

/tag acccounts = ActiveSheet.Name
Sheets.Add
TempSh = ActiveSheet.Name
Sheets(TempSh).Activate
Application.ScreenUpdating = True
For Each f1 In fc
With Sheets("accounts")"/tag

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

Creating Individual Report Cards (worksheets) Based On Template For Report Card

Aug 30, 2013

I have two worksheets in my report cards:

1) Data - the students are listed in Column A, math scores in Column B, reading scores in Column C and science scores in Column D. The grades of 300 students are entered in this sheet.

Student
Math
Reading
Science

Jimmy
75
84
100

[code].....

2) Report Card template - This is the report card that needs to be generated for each student. It's pulling the student name and grades from the Data worksheet.

Student Name
=Data!$A2

Math
=Data!$B2

Reading
=Data!$C2

Science
=Data!$D2

How do I create worksheets (report cards) for additional students? I have 300 students in the school. I need the next worksheet to reference Data!$A3. I know how to cut and paste the report card template and then edit =Data!A2 to be =Data!A3 to create a report card for Sally. How do I create the 300 report cards I need?

I've been teaching for 13 years. I can create a report card for each student in my class and edit each worksheet individually for each student. Now I've been asked to do this for the whole school and I don't know how to create the other 299 sheets I need.

View 1 Replies View Related

Fetch Data From ASPX Webpage

Sep 12, 2013

I tried to use the following code to get data from an ASPX webpage:

[URL]....

VB:

Sub Fetch_Marcas()
Dim IeTbl As Object
Dim obj As Object
Dim Scrn As String
Dim objIE As SHDocVw.InternetExplorer 'Microsoft Internet controls (shdocvw.dll)

[Code]....

However, I cannot get past the point where I click over the register (highlighted in yellow in Picture 1), to get the data displayed at Picture 2.

Picture 1
Picture 1.jpg
Picture 2
Picture 2.jpg

Please note that this query requires to click over what is not a button (I looked in the forum, but no similar question was made before on this topic).

View 6 Replies View Related

Fetch Unique Values - Dynamic

Nov 5, 2009

I am trying to find unique values on one page and copy/paste them on another page (all within one workbook). I tried to use advanced filter, but ran on some problems: i) it does not copy values on to the new page ii) it is not dynamic.

my information is entered on a daily basis, which is why I need the filter (or code) to be dynamic. The information, however, is not stored, but rather generates a daily invoice, this is why I want find only unique values to appear on a new page (invoice).

View 10 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

How Do I Fetch Data From Different Excel Sheets

Jun 13, 2007

Is there a way to capture the records(which meets the criteria) from different excel sheets' sheet1 (A.xls,B.xls) located in some path (c: est) and copied them into our own Result.xls spread sheet?

It would be great and very useful, if you could provide the solution for 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

Copy Data From Weekly Report To Monthly Report

Jul 2, 2008

How do you create a macro to copy the information from my weekly reports to a monthly report and be able to update automatically. If you had 4 worksheets (for each week of the month) and 1 mastersheet for the whole month in a workbook. All titles are the same and If you needed to copy all the data that is in the columns, say, A through I, starting with row 4 to however many rows are in a given week. The reports can be made up of numicerial values, text and dates. Let me know if more information is needed or an example worksheet.

View 4 Replies View Related

Macro To Fetch Data Based On 2 Criteria?

Oct 22, 2013

Attached is my .xls with dummy data Fetch data By Director.xlsx.

My intention is that once the Director and Month in tab 'By Director & Month' is chosen and the Fetch Data commandbutton is clicked, a new workbook should open.

This new work book should have :

all entries in tab 'Monthly Invoice Input' for that Director-Month combination,along with a sum total of column Q(Total invoice amount) in the last row.

View 6 Replies View Related

Vlookup Macro To Fetch Data From Another Worksheet?

Aug 10, 2014

I am trying to create a macro for vlookup. Each time the name of the source file changes. I dont want to update the formula everytime. So Iam trying to do a macro which will fetch the data from the file that the user mentions in the sheet2.

I have attached the source file and the VLookup file. Now when I enter the source file path in sheet 2 of workbook "Vlookup", and then if I run the macro it should open the file and put the dates in Sheet1 (Columns "D" and "E") of workbook "Vlookup". The dates in the source file will be available in sheet 1(column F and H) of that workbook.

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







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