+ Reply to Thread
Results 1 to 4 of 4

Getting data from a sheet without opening it

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    belgium
    Posts
    4

    Getting data from a sheet without opening it

    Hi,

    I am very new to this so you will have to forgive me for asking a basic question! I want to copy and paste data from sheets without opeing them. I recorded the following macro myself:

    Please Login or Register  to view this content.
    I know this can be done better as it causes my workbook to flash between screens very quickly and I have much longer ones that I run too which doesn't look good. I tried deleting the 'Activate' parts hoping that this would mean the page didn't open but this didn't work. I know this has a simple solution - but I don't know how to do it!

    Thanks for helping

    Lara

  2. #2
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    stop the flashing

    Hi larawill .. the command you're after is:

    Please Login or Register  to view this content.
    But - I suggest you read the help topic and use with some caution (e.g. make sure your code won't crash and not get reset to "true" before ending.

    Cheers, MM.

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    Hi
    the formula to pulldata from closed workbook.
    D4(of data book) ='C:\imports\[databse.xls]mainsheet'!D8
    Note the syntax: characters in bold are compulsory. variables are file path(C:\imports\), file name (databse.xls) and sheet name (main sheet)and cell reference (D8). change them to suit your needs.
    ravi
    Last edited by ravishankar; 09-25-2008 at 06:58 AM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Is this right, you have data in a closed workbook that you need to copy to the other workbook? If so the easiest way is to open the workbook without letting the user know.Soimething like this

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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: 4
    Last Post: 07-27-2008, 06:26 AM
  2. Macro to Search, Copy/Paste onto New Sheet
    By JADownie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2008, 04:57 PM
  3. Add sheet reference to data
    By Vlad999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2008, 11:31 PM
  4. copying various cells in ot different cells in a different sheet
    By MonkeyDeath in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-25-2007, 11:22 AM
  5. Searching for a sheet and using data from the matching sheet.
    By meacho in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2007, 09:51 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