+ Reply to Thread
Results 1 to 6 of 6

Storing data from Userform to Shared Excel file wothout opeing the excel file.

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Storing data from Userform to Shared Excel file wothout opeing the excel file.

    HI,
    I have designed a Userform. which uses by 10 members from 10 different systems for entering Customers data. In shared drive we have a shared Excel file. Here my problem is: whatever data entering by my team from different systems, the data needs to store in one excel file which i have already saved in shared drive without opening the file. Below is example code which i have written. In my code excel file opens every time and closes. I don't want the file to open. I want data to be stored even the file is in closed status. please help me in this..

    Private Sub CommandButton1_Click()
    Dim RowCount As String, a As String, b As String
    a = Range("a1")
    b = Range("b1")

    ' write data to worksheet
    Dim wb As Excel.Workbook
    Set wb = Workbooks.Open("D:\Balaji Naik\Chit Fund\bdungav.xlsx")

    RowCount = wb.Worksheets("Data").Range("A1").CurrentRegion.Rows.Count
    With wb.Worksheets("Data").Range("A1")

    .Offset(RowCount, 0).Value = a
    .Offset(RowCount, 1).Value = b
    End With
    wb.Save
    wb.Close

    End Sub

  2. #2
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Storing data from Userform to Shared Excel file wothout opeing the excel file.

    Honestly, this type of scenario would be best suited using an Access database setup with front-end and back-end files so multiple users can enter information via forms and it is automatically in the back-end db

  3. #3
    Registered User
    Join Date
    08-15-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Storing data from Userform to Shared Excel file wothout opeing the excel file.

    Thank you AYData.. can you please provide me an example code...

  4. #4
    Registered User
    Join Date
    08-15-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Storing data from Userform to Shared Excel file wothout opeing the excel file.

    Hi,

    I have another question. I have a userform with 4 textbox and 1 command button. In four text boxes i need to input data from four different applications. for moving Userform to other applications i use shortcut key (Alt+Tab). Problem: Once textbox1 filled with some data, i pressed Tab key. Then cursor moved to Textbox2. Now I used Alt+Tab for moving to application for getting customer name. again I came back to userform, but the cursor is not appearing on Textbox2.

    Please advise, what need to do for appearing cursor where it was before I pressed Alt+Ctrl.

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Storing data from Userform to Shared Excel file wothout opeing the excel file.

    I'd use google docs, data capture using webforms is beyond trivial - the backend workbook updates in real time, you can have unlimited users and you don't even need to write any code.

  6. #6
    Registered User
    Join Date
    08-15-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Storing data from Userform to Shared Excel file wothout opeing the excel file.

    In my company our management restricted to use outside domains. Kindly provide solution on VBA code..! Thank you in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 04-12-2013, 07:38 AM
  2. Replies: 4
    Last Post: 10-21-2012, 06:00 PM
  3. Replies: 1
    Last Post: 10-04-2012, 08:11 AM
  4. Replies: 3
    Last Post: 03-08-2006, 06:10 PM
  5. [SOLVED] shared excel file
    By Maileen in forum Excel General
    Replies: 1
    Last Post: 09-20-2005, 09:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1