+ Reply to Thread
Results 1 to 3 of 3

VBA Write record to table

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    VBA Write record to table

    Good Day

    is there a way of speeding up writing data to a table. The attached code writes data stored in variables to a new row in the table, this takes approximately 4 seconds, is there a way for it to be faster? screen updating is set to false and calculation is on manual.

    What I have noticed is, in the workbook is indicated as "not responding" but the macro still runs

    Your help will be appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: VBA Write record to table

    Don't know if it'll speed things up much but you don't need to select anything or use Selection.

    Also, even though you might have turned off screen updating and set calculation to manual elsewhere it doesn't guarantee that will still
    be the case when running this code.
    Please Login or Register  to view this content.
    Last edited by Norie; 05-16-2018 at 07:44 AM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: VBA Write record to table

    Hi there

    Thanks I will try it.

+ 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. [SOLVED] Need to record/write ALT+SHIFT+X into a macro!
    By LoriSulfate in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2015, 11:08 AM
  2. Replies: 0
    Last Post: 05-21-2015, 05:50 PM
  3. Replies: 1
    Last Post: 11-16-2012, 09:25 AM
  4. Replies: 0
    Last Post: 03-29-2012, 05:45 AM
  5. Replies: 1
    Last Post: 01-17-2012, 10:47 AM
  6. Record/write macros independent of a specific file
    By W2009 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-22-2009, 01:38 PM
  7. Replies: 1
    Last Post: 09-14-2005, 12: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