+ Reply to Thread
Results 1 to 9 of 9

Write data in closed workbook through user form.

  1. #1
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Write data in closed workbook through user form.

    Hi. I am new in vb and I am trying to make a user form which may help me to write data in a closed workbook available in my system drive.
    I tried this code.
    Please Login or Register  to view this content.
    But not working.

    Please help me to sort out this problem.
    I observed that there are many experts in Excel Forum, and I think you all are able to do this.
    So I request you please give me a simple code to enter data in closed workbook if possible.

    If you have any sample of this then please attach here or my email amiritait@gmail.com.


    I shall be very thankful to you for your help.
    Last edited by AmirSoft; 12-23-2014 at 03:40 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: Write data in closed workbook through user form.

    http://www.ozgrid.com/VBA/ExtractFromClosedWorkbook.htm

    Read the above site.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: Write data in closed workbook through user form.

    Thanks for reply.
    In above link they mentioned the way to get data from closed workbook. I want to write data in closed workbook.

    Please guide me about this

  4. #4
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: Write data in closed workbook through user form.

    Thanks for reply.
    In above link they mentioned the way to get data from closed workbook. I want to write data in closed workbook.

    Please guide me about this

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Write data in closed workbook through user form.

    You may try something like this to see if this works for you.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: Write data in closed workbook through user form.

    Thanks
    This work, But It Open that file.
    I want file remain close, is it possible
    if not then open that file and close it after save automatically.

    Please send code

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Write data in closed workbook through user form.

    Try this......
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: Write data in closed workbook through user form.

    YOU WORK GREAT

    THANK YOU SO MUCH.

    can we count the rows of single column and enter data in next columns
    because when i expand the range then it always enter the data in first row of new column.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Write data in closed workbook through user form.

    Hi Amir,

    Here is the modified code....
    Please Login or Register  to view this content.

+ 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. VB Write User Form Data to Excel
    By Shazz in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-26-2012, 08:42 AM
  2. Write data to a closed workbook
    By Dave H9 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-16-2011, 02:59 AM
  3. write data to a closed workbook
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2010, 06:16 PM
  4. User form don't write if no data is entered
    By nods in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2010, 12:37 AM
  5. How to Read/Write Data to/from a closed workbook
    By samtwilliams in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2008, 10:02 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