Helping in Excel sheet 2013

I have sheet for (4 shifts)
 i wanna make roster depend on date,  the roster as follow
when i put starting day it makes fill automatically as the previous picture from starting date of month and ending of the same month and when i put another dates it make it as the same mechanism  .. i wish you help me in this issue and also if you wanna
me to attach the file or give me the hint to solve the problem using excel vba 2013.
another help: i have also day duty shift they attend all the week (M) except Friday and Saturday are (O)

Hi Ahmed,
We could get the last used row and column through End method, then we could get the last empty cell and set the values to the empty cell (start from the last empty cell).
Simple code:
Sub LastRowWithData_xlUp_1()
'use End(xlUp) to determine Last Row with Data, in one column (column B)
Dim lastRow As Long
'Rows.count returns the last row of the worksheet (which in Excel 2007 is 1,048,576); Cells(Rows.count, "B") returns the cell B1048576, ie. last cell in column B, and the code starts from this cell moving upwards; the code is bascially executing Range("B1048576").End(xlUp), and Range("B1048576").End(xlUp).Row finally returns the last row number.
lastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
MsgBox lastRow
End Sub
Sub LastColumnWithData_xlToLeft()
'use End(xlToLeft) to determine Last Column with Data, in one row (row number 2)
Dim lastColumn As Integer
lastColumn = ActiveSheet.Cells(3, Columns.Count).End(xlToLeft).Column
MsgBox lastColumn
End Sub
To get the weekday, we could use WeekDay function, for example:
Dim LWeekday As Integer
LWeekday = Weekday("3/27/2015", vbSunday)
I suggest that you could try to achieve that, if you have the issues, you could post here if they are related to original issue or open the new threads.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to export a dynamically generated datatable into excel sheet 2013?

    I have one data table and in that data table i am fetching data from sharepoint 2013 lists.
    When I export that data table into excel sheet, what ever data is static will be shown but the data which I fetch from lists are not coming.
    How should I get that data in my excel sheet from that data table?
    This is the code for Export to Excel:
    public void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    Response.Write(tw.ToString());
    Response.End();
    Thanks in Advance.

    ublic void ExportToExcel(DataTable dt)
    if (dt.Rows.Count > 0)
    string filename = "WebTrafficReport.xls";
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
    DataGrid dgGrid = new DataGrid();
    dgGrid.DataSource = dt;
    dgGrid.DataBind();
    //Get the HTML for the control.
    dgGrid.RenderControl(hw);
    //Write the HTML back to the browser.
    //Response.ContentType = application/vnd.ms-excel;
    Response.ContentType = "application/vnd.ms-excel";
    Response.AppendHeader("Content-Disposition", "attachment; filename=" + filename + "");
    this.EnableViewState = false;
    HttpContext.Current.Response.Write(sw.ToString());
                        HttpContext.Current.Response.Flush();
                        HttpContext.Current.Response.End();
    }}try this should help

  • My Excel Sheet is not reading the numbers i am placing in the excel sheet

    Hi, 
    I need help My Excel Sheet is not reading the numbers i am placing in the excel sheet and if i am trying to place a new formula into that cell it is reading it as zero even there is data in that cell. 
    Thanks

    Hi Abed23,
    Are the cells formatted as text perhaps?
    Regards, Jan Karel Pieterse|Excel MVP|http://www.jkp-ads.com

  • Read and write excel sheet data from uploded file in sharepoint site programmatically 2013

    hi team,
    I am working on sharepoint 2013.I want to read and write data in excel sheet (micrsoft excel) from stored file in shrepoint docoumnt library .please suggest me
    vijay

    Hi
    Vijay,
    check those links
    http://www.sharepointwithattitude.com/archives/61
    https://social.technet.microsoft.com/Forums/en-US/e760051b-a92f-473c-9ec9-0f0c36c99e40/read-and-write-excel-sheet-data-from-uploded-file-in-sharepoint-site-programmatically-2013?forum=sharepointdevelopment
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014

    we are getting error while refreshing connection on excel sheet which containing data from data source in form of power pivot.
    error is "An error occurred during an attempt to establish a connection to the external data source. The following connections failed to refresh:"
    I am confused about Configuring the Analysis Service in SharePoint Mode.
    What account should be used for Configuring the Analysis Service in SharePoint Mode?
    what are the steps and what permissions are required and where to add it?
    can you please explain in detail so i can make sure about my account permission properly in my environment?
    Do we need to install Analysis service on sharepoint server box or not? if yes, then what are steps to follow it?
    it is mentioned here to have two services are running under manages services under sharepoint central,
    https://msdn.microsoft.com/en-us/library/jj682085.aspx#bkmk_verify_powerpivot
    but we don't have SQL Server Analysis Services
    running under  Manage
    services on server.
    what need to be done here to fix this issue ?
    Thanks,
    Deepak Patel

    Hi Deepak,
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Meanwhile, could you please check if there is any related ULS log for help troubleshoot the issue when error occurs.
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshoot-powerpivot-data-refresh.aspx
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/04/02/powerpivot-for-sharepoint-manual-data-refresh-failing.aspx
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

    Hi,
    To achieve these are the steps that I had followed :
    1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
    2. Add Documnet Library link to Trusted Connection Proivder
    3. Open Visual Studio as Run as Administrator
    4.Create an SharePoint 2013 Empty Project.
    5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
    6.Service added successfully
    7.Create a class file and add the Service Reference namespace
    There is no such class as ExcelService to call. 
    Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
    Requirement is :
    Need to read the excel sheet  from Document Library and transfer all data into DataTable.
    Please help asap. 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014 using BISM file connection

    I am getting following error while refreshing connection on excel sheet in power pivot gallery,
    my scenario,
    using BISM file connection to create and  refresh power pivot excel sheet in power pivot gallery
    throws error and we have sql server 2014 CU6 updated installed plus sharepoint 2013. i checked following msolap110.dll is available in our environment but assembly
    Microsoft.AnalysisServices.ChannelTransport is not available. 
    i found error in event viewer,
    "Activation context generation failed for "C:\Program Files\Microsoft Analysis
    Services\AS OLEDB\110\msolap110.dll". Dependent Assembly
    Microsoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    what should i do to fix it?
    Thanks for help.
    Deepak Patel

    Rebecca,
    yes, this is issue i am getting.
    Activation
    context generation failed for "C:\Program
    Files\Microsoft Analysis Services\AS OLEDB\110\msolap110.dll".
    Dependent AssemblyMicrosoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    let me know if you can find fix for it.
    THanks,

  • Modify Excel sheet from the sharepoint 2013 by remote event receiver

    Hi,
    I am new in sharepoint 2013.Actually i want to update excel sheet (that are stored in sharepoint library) by remote event receiver.
    Please help me how to do this.
    Thanks
    Sanjeev Tiwari
    Sanjeev Tiwari

    The proper response is that it's not possible because Excel Interops are not supported running on a server. The technical answer is that you could find work-arounds including treating it as an Open XML object. In either case, I think you need to develop
    the Excel processing component first and then connect to that the external event receiver.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Excel 2013: Slow performance loading Excel Sheets

    Our customer is migrating from Vista/Office 2007 to Windows 7/Office 2013 and they have the following configurations:
    VDI Windows 7 PRO x64, XenDesktop 5.6 - 2 Core on ESX 5.0, 4GB, VDI on SSD
    VDI Windows 7 PRO x64, XenDesktop 5.6 - 2 Core on ESX 5.5, 4GB, VDI on SSD
    Laptop, Windows 7 PRO x64, 4 core (+HT) i7, 8GB, SSD
    Advanced workstation, Windows 7 PRO x64, dual 8 core Xeon (No HT), 32GB, SSD
    On all these systems we tested Excel 2013 (patched until today) in both 32-bit as 64-bit versions. Both as AppV and Native install.
    When we open an Excel worksheet, approx 220MB with a lot of cell's and rows, Excel takes approx 2-4 minutes to open the sheet, even when calculations do not apply. In Excel 2007, the same sheet opens within 20 seconds and even faster.
    What we tried:
    Auto calculation - Disabled
    All fancy stuff in Excel - Disabled
    excel.exe.config with settings to bypass some certifcate checks
    Disabled and finally removed allmost every plugin
    Playing with a lot of options in Excel 2013
    To have a cross check, we reproduced the problem at an other client with both Excel 2013 and Excel 2010. And the problem still exists allthough Excel 2010 is not as bad as Excel 2013.
    Is there any solution for this problem other then not use Office 2010/Office 2013 and stick with Office 2007 (what has other problems in combination with newer software so is also not an option)?
    Update dec 17, 2014:
    Tested with Safe Mode - No solution
    Tested with Trusted locations - No solution

    George,
    I did do some tests as suggested and I found a huge difference between the handling of Excel 2007/2010 and 2013. I did see some strange behaviour.
    I created an Excel Sheet in all 3 environments with identical steps to get identical sheets. After save i discovered the following:
    On Excel 2007/2010 the test sheet was:
    Test Sheet.xlsx - 191.894 kB
    Test Sheet.xls - 614.881 kB
    On Excel 2013 test sheet was:
    Test Sheet.xlsx - 187.378 kB
    Test Sheet.xls - 336.092 kB
    After that we repeated tests, but due to some problems with the Vista/2007 workstation I was not able to continue my tests, and maybe tomorrow I can do the tests there.
    When I was testing with 2010 and 2013 i discovered there are some phases when loading a sheet. And there is where 2013 in my opinion does something not good. The tests run from "Open" until the sheet can be "Edited".
    Under Excel 2010 the phases can be defined as: Download, Validate, Open, Calculate, Display, Editable
    Under Excel 2013 the phases can be defined as: Download, Validate, Open, Calculate, Calculate, Display, Editable
    What i noticed is that Excel 2013 does calculate the sheet 2 times instead of one time. And I made some tests with this knowledge.
    Test/Stage
    Type
    Download
    Open/Validate
    Calculate 1
    Calculate 2
    Ready
    Excel 2013
    xls
    0:17
    0:38
    1:15
    1:48
    2:17
    Excel 2013
    xlsx
    0:10
    1:18
    1:49
    2:28
    2:32
    Excel 2010
    xls
    0:27
    3:03
    3:36
    3:42
    Excel 2010
    xlsx
    0:08
    0:56
    1:10
    1:13
    Excel 2010 (2013 sheet)
    xlsx
    0:06
    0:53
    1:09
    1:14
    So there is a second calculation loop in Excel 2013 what takes a lot of time. And i discovered some other problems when creating my test sheets where recalcuation makes a mess of it, but that is a later issue.

  • I need app to help me to filter & hide columns in excel sheet?

    Is there any app helps me to filter &amp; hide excel sheet ?

    There are a number of apps that are compatible with Office documents. Apple makes iOS versions of their own iWork apps (Numbers is the spreadsheet) that can be purchased separately. There are also 3rd party combined suites that cost less than the separate Apple apps. Ones often recommended include Documents 2 Go,  Quickoffice and Office2 HD. You'll need to consult the documentation for each app to see if it will have the specific features you need.
    If you want access to the actual Microsoft Excep application and can accept needing a network connection whenever you want to use the application, a server-based solution such as CloudOn might be an option for you.
    Regards.

  • TS1702 In the numbers app 1 spreadsheet keeps trying to update.  It is an excel sheet and I can not delete the sheet as it keeps trying to update? Any help would be appreciated.

    In the numbers app 1 spreadsheet keeps trying to update.  It is an excel sheet and I can not delete the sheet as it keeps trying to update? Any help would be appreciated.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Help required in creating a dimension from an excel sheet

    Hello all ,
    We have a new requirement ,where we need to create a Dimension from an excel sheet. I tried creating it from a . csv file. But , I am not sure how to set the across, down statement ( if any) . The procedure is able to peek the data from the excel sheet. But , it says that the dimension member is not a selected member of variables. We have not created any variable yet. The transcript of the procedure is below :
    remove dimension MODULE
    ACCESS EXTERNAL
    USE 'C:\module.csv'
    DESCRIPTION FREE ,
    peek only 5
    read
    BEGIN
    construct MODULE
    level MODULE_CD
    label MODULE_DESC
    preface "custom 5 allocate 1000,30,1"
    END
    end
    compile dimension MODULE
    Please advise
    Thanks and Regards
    Vijay

    Hi Vijay,
    I believe you should be identifying the fields you have in your csv file, in your case MODULE_CD and MODULE_DESC:
    DESCRIPTION FREE ,
    MODULE_CD text 10
    MODULE_DESC text 20
    Can you try that to see if it makes a difference?
    Regards!
    Ricardo

  • Help needed to write in excel sheet

    Hi,
    I currently need to read a table and write it in a file.
    iam able to do it by using UTL package.The utl file also writes in xls format.but if a record has two column.
    both the columns are written in a single column in excel
    sheet.Kindly suggest me how to solve this problem
    Thanks in advance.

    1. spool a file with 'csv' extension using Sql*Plus.
    2. Use a delimiter for columns.
    For example,
    select '"'||column1||'","'||column2||'"'
    from mytable

  • Java and Excel sheet (hssf poi) creating back up  please help!!

    Dear friends , i have a problem i saved some data into some excel file using HSSF POI . after raeching some lines say a maximum of 1000 lines ) i have to save the EXCEL sheet as backupfile with the extention .bak and then delete the original Excel file . did any body have some idea about this . i know you guyz are gurus so please give some advise
    thanks in advance
    cheers
    harsha

    you would actually have a counter to count the number of rows you inserted into the spreadsheet..once counter hits 1000, just save it as .bak extension?

  • Can't save BISM file pointing to excel sheet (data source). ErrMsg: "There were errors found while validating the page: Cannot connect to the server or database."

    Hi,
    Me and a collegue is administrering our new enterprise BI portal in SharePoint 2013 (On Premise) and have a problem with using a specific Excel file including general ledger data as data source through a BISM file.
    This particular BISM file can't be saved without getting the error message "There were errors found while validating the page: Cannot connect to the server or database."
    BISM files against other Excel sheets and sources (for example SSAS tabular databases) works well.
    Can anyone help us pinpointing whats wrong here, this is a really important stakeholder in our organization requesting this reporting?
    Cheers!

    Hi E.SWARD ,
    My self created a Power pivot excel then i want to use this excel to create BI file . Still i am getting the same error . Pls help me to resolve this issue
    Cannot connect to the server or database.
    I am getting the similar error , if i use Tabular analysis server instance .
    Subhash

Maybe you are looking for

  • Cannot enable wifi

    iphone 4s with ios6 cannot enable slider to turn wireless on/ already reset network settings, turned of/on airplane settings and resarted phone.

  • Sneak Preview Install KMC Error

    Install of sneak preview generates following error in KM Content. How to resolve this error. com.sap.portal.pcm.Title        Portal Runtime  An exception occurred while processing a request for : iView : pcd:portal_content/administrator/super_admin/s

  • File handling in J2ME

    Hi All, When I start reading or writing an y data in a local file in my system through a midlet, it asks for "Is it OK to read/write local files". I don't want this to popped up . Can anyone please guide me in how can I remove or bypass this popup an

  • Can't open any attachments from my email since installed Firefox 10.

    I updated to Firefox 10 about 30 minutes ago and now I am unable to open any email attachments. Please help.

  • MiniSap relicense problem

    Hi I'm an ABAP/4 old hand, had a couple of years out (VBA, VB.Net)  but it looks like I'm moving back to SAP now. I bought Business Objects a year or so ago and installed it okay. Now when I try to relicense it I'm getting problems. I've run the dbEn