User Profile

Collapse

Profile Sidebar

Collapse
flickimp
flickimp
Last Activity: Nov 20 '08, 02:16 PM
Joined: Dec 21 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • flickimp
    started a topic Excel VB to Save Sheet as Filename

    Excel VB to Save Sheet as Filename

    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...
    See more | Go to post

  • 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
    ...
    See more | Go to post
    Last edited by NeoPa; Aug 19 '10, 10:59 AM. Reason: Please use the [CODE] tags provided

  • flickimp
    replied to Run Stored Procedure from Excel
    Anyone know a quick way to sort this?
    See more | Go to post

    Leave a comment:


  • flickimp
    started a topic Run Stored Procedure from Excel

    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:

    ----------------------------------------------------
    ...
    See more | Go to post

  • flickimp
    replied to Run Sql Stored Procedure From Excel
    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?
    See more | Go to post

    Leave a comment:


  • flickimp
    replied to Run Sql Stored Procedure From Excel
    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...
    See more | Go to post

    Leave a comment:


  • flickimp
    replied to Run Sql Stored Procedure From Excel
    New to macros.

    Any tips?
    See more | Go to post

    Leave a comment:


  • flickimp
    started a topic Run Sql Stored Procedure From Excel

    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?
    See more | Go to post

  • flickimp
    started a topic Sql Rounding Up And Down

    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?
    See more | Go to post

  • flickimp
    started a topic Convert Varchar into Int

    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...
    See more | Go to post

  • flickimp
    replied to Creating a Pivot with a Macro
    Still need help on this?????
    See more | Go to post

    Leave a comment:


  • flickimp
    started a topic Creating a Pivot with a Macro

    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",...
    See more | Go to post

  • flickimp
    started a topic TIME DIFFERENCE in SQL

    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......
    See more | Go to post

  • flickimp
    replied to Run DTS within a DTS
    Any help please..... searched the web with no valid answers to this issues
    See more | Go to post

    Leave a comment:


  • flickimp
    started a topic Run DTS within a DTS

    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...
    See more | Go to post

  • flickimp
    replied to Popchart Xml Linebar Graph
    in XML
    Yes, sorry, close the thread
    See more | Go to post

    Leave a comment:


  • flickimp
    started a topic Analysis Manager -copying of databse roles?

    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...
    See more | Go to post

  • flickimp
    replied to Popchart Xml Linebar Graph
    in XML
    Does anyone know of another forum that deals with popcharts?
    See more | Go to post

    Leave a comment:


  • flickimp
    replied to Popchart Xml Linebar Graph
    in XML
    Can anyone help????
    See more | Go to post

    Leave a comment:


  • flickimp
    started a topic Popchart Xml Linebar Graph
    in XML

    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:
    -------------------------------------------------------------...
    See more | Go to post
No activity results to display
Show More
Working...