+ Reply to Thread
Results 1 to 4 of 4

how to copy multiple cells in one time?

Hybrid View

jeffrys how to copy multiple cells in... 01-25-2014, 09:34 AM
stnkynts Re: how to copy multiple... 01-25-2014, 11:02 AM
jeffrys Re: how to copy multiple... 01-25-2014, 12:34 PM
alansidman Re: how to copy multiple... 01-25-2014, 01:05 PM
  1. #1
    Registered User
    Join Date
    12-26-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2013
    Posts
    8

    how to copy multiple cells in one time?

    hi guys,

    managed to have a macro that copies 5 different cells in another workbook.

    But everytime i let it run, the 2d workbook will be opened and closed really fast, so i changed the macro after a long search to find the option, thinking that when i have one move it would only open once.

    But no, result is in fact the same, so i must be doing something wrong.

    I include the macro, but do not understand why the move of the 5 cells does not happen in one time.

    Even better, how to avoid workbook2 to open and close, i mean can it be done that way?

    Any ideas are appreciated

    Jeff

    Range("K6:O6").Select
        Selection.Copy
        Windows("FACT-2014-SAMEN").Activate
        Range("C2:G2").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
    so the range ("K6:O6") is from workbook 1 that is used to fill in the second workbook
    Last edited by alansidman; 01-25-2014 at 01:05 PM. Reason: code tags

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: how to copy multiple cells in one time?

    Have you tried:

    Application.ScreenUpdating = False
    
    Range("K6:O6").Copy
    Windows("FACT-2014-SAMEN").Range("C2:G2").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    
    Application.ScreenUpdating = True

  3. #3
    Registered User
    Join Date
    12-26-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: how to copy multiple cells in one time?

    yes,

    but i did place it wrong, have corrected this and it works

    sorry for the inconvenience, i thought i already posted my fault.

    thanks

    Jeff

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2509 Win 11
    Posts
    24,994

    Re: how to copy multiple cells in one time?

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (I have added them for you today. Please read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Copy formulas to adjacent columns - multiple cells and multiple sheets
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2011, 06:21 AM
  2. copy sheet in multiple sheets in the same time
    By zabava ion in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2009, 11:39 AM
  3. copy multiple cells but jumpin one step at a time
    By Pete in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-11-2006, 03:30 PM
  4. Replies: 0
    Last Post: 07-10-2006, 04:34 PM
  5. [SOLVED] Date and time stamping multiple cells for multiple entries.
    By Gerald in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2006, 08:50 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