Hi
I have an excel file with 20 sheets.
Now then... I am only interested in one Sheet (2 pages) and I want to save that to a particular folder.
Also, the sheet is dependent on Cell D7 equalling a code...that in turn feeds all of the vlookups...you get the picture
For this, I added a loop.[PLEASE SEE CODE BELOW]
What should happen, is D7 should be populated by watever lies...
User Profile
Collapse
-
Excel VB to Save Sheet as Filename
-
Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been denied
Trying to open a SQL Server query but am getting this message:
Ad hoc access to OLE DB provider 'Microsoft.Jet. OLEDB.4.0' has been denied. You must access this provider through a linked server.
Heres the script:
...Code:Insert into OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="H:\Imran\Capacity Planning 0708\UHL Spells Apr 05 to Sept 07 TEST.xls"; Extended properties=Excel
-
Anyone know a quick way to sort this? -
Run Stored Procedure from Excel
Hi
I have a stored procedure on SQL Server 2000 called:
[Busobjects].Capacity_Plann ing.dbo.sp_flic kimp_test
I have an Excel Sheet with the 2 paramters for the Stored procedure in cells A1 and B1.
How do I execute a SQL Stored procedure from Excel pulling through the variables?
Someone told me to use:
----------------------------------------------------
... -
Hi
Sorry for not using the tags.
The Stored procedure was created in SQL Query Analyzer 2000.
I tried to use MS Query to pull the SP back with the variables, but no joy.
What steps must I take to allow the parameters from excel cells to be picked up by the stored procedure so that it returns the results back to excel?Leave a comment:
-
Hi
Heres the Stored Procedure
Say in Excel ---- cell A1 = @Type and cell B1 = @LSS
Create Proc sp_Flickimp_tes t
@Type Varchar(3),
@LSS Varchar(3)
as
Select Provider_Code,
Commissioner_Co de,
LSS_Flag,
Financial_Year,
Financial_Month ,
Specialty_Code,
Description_Con tract,
Activity_Type,
Case When Activity_Type in...Leave a comment:
-
-
Run Sql Stored Procedure From Excel
Hi
I want to create a Stored Procedure in SQL with three variables that are declared in an Excel file.
Thus, when the user enters the three variables into
Cells A1, B1, C1
Then hits a button....
The Stored procedure in SQL 2000 will run - and then return the results to a refreshable pivot table in the Excel file.
Any ideas? -
Sql Rounding Up And Down
If I have
17.4
How do I get it to round down to 17
and likewise round 17.6 up to 18?
Round, Ceiling and Floor just arnt working for me? -
Convert Varchar into Int
Hi
I have imported some varchar figures.
such as 0.050 (we'll call this Field)
I need to convert them into int to be used for calculations.
when I do
CAST(Field as int)
I get...
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the varchar value '0.050' to a column of data type int.
Normally I dont get this... -
-
Creating a Pivot with a Macro
Have created a macro to recreate a Pivot whenever the user has new data.
The macro breaks in the bold section.....
Sheets("PASTE YOUR DATA HERE").Select
Range("C21").Se lect
ActiveWorkbook. PivotCaches.Add (SourceType:=xl Database, SourceData:= _
"'PASTE YOUR DATA HERE'!C1:C18"). CreatePivotTabl e TableDestinatio n:="", _
TableName:="Piv otTable1",... -
TIME DIFFERENCE in SQL
Very simple question
START DATE = 2005-04-01 00:01:00.000
END DATE = 2005-04-01 03:55:00.000
I want datediff query to return 3 hours and 54 minutes ie: 3:54
Anyone...... -
Any help please..... searched the web with no valid answers to this issuesLeave a comment:
-
Run DTS within a DTS
Hi
On Enterprise Manager have created two DTS packages:
1 = Transfer Data
2 = Process Cube
In total we have loads of these.
What I want to do is to create a DTS that will run the toehr 2 DTS in sucessions.
Now when I use the Execute Package Task facility to run the 2 DTS, it fails....or just hangs for an eternity.
Is there way to run (say) 7 Execute Package... -
-
Analysis Manager -copying of databse roles?
Hi
We have two servers on Analysis Manger.
On Server 1 - we have created a cube and have allocated permissions/roles to 150+ accounts......q uite a tedious job (as each role is slightly diffferent to the other).
Server 1 is our test server.
Server 2 is the live server.
When I copy the cube over from server 1 to server 2, we were hoping that the database roles from server 1... -
-
-
Popchart Xml Linebar Graph
Hi
Please see the below code that is used within a web system to show a line graph.
Currently, whatever value I have in column 1 is being shown as a line, and whatever is in column 2 is being shown as a vertical bar.
What I want to do is to reverse this, therefore, column 1 = bar, and column 2 = line.
I cannot work out .....how to do this..... the pcxml appplied is:
-------------------------------------------------------------...
No activity results to display
Show More
Leave a comment: