+ Reply to Thread
Results 1 to 16 of 16

copying 2 columns in one sheet, to all other sheets (except 2 sheets)

  1. #1
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Hello my friends,

    i wanna have a macro code

    i wanna copy C and D columns in Sheet1 and insert these 2 columns (copy + insert copy cells function, not copy + paste) to all other sheets except Infopage sheet

    can u help me pls ?

    mistake in title: (except one* sheet)
    Attached Files Attached Files
    Last edited by aaaaa34; 05-25-2014 at 05:28 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Try
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Run the sub below:

    Please Login or Register  to view this content.
    Last edited by playaller; 05-25-2014 at 07:27 PM.


    Shelton A.
    If Helpful, Add Reputaion!

  4. #4
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    thank u my friends

    playaller, if i wanna add one more excluded sheet like "infopage", its name is "extracost"

    how we should modify it for not applying this code to two sheets: "infopage" and "extracost" ???

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Add 1 more AND condition in the code.

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    waaaaay my neighbor Fotis!!!!
    how are u : )))))) thank u so much for helping me always, 7/24 : )))))

    infact Fotis, i have one more problem with this code !
    when i run this code, its working only with the *.xlsm file where its saved , its not running in other excel files which is opened in that time beside this *xlsm file.

    this error comes from this part in code : "For Each ws In ThisWorkbook.Sheets" ???

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Hello to you too.

    I am not able to see the mistake that you refer to. I tried to save in xls and works ok for me.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Try one of these lines

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    tamam AB33 !!!
    it worked
    thank u so much!!!

    fotis, how u could write macro to Xls file ? : ))))) cant macro codes be stored only with xlsm files ?

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    xlsb and xlsm are files(with macros) that exist for Excel >=2007.

    Before 2007 all the files were in xls format(with OR without macros).

  11. #11
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Quote Originally Posted by Fotis1991 View Post
    xlsb and xlsm are files(with macros) that exist for Excel >=2007.

    Before 2007 all the files were in xls format(with OR without macros).
    ah i see, U love 2003 more : ))))))))

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    I worked almost 10 years using Excel 2003. So yes. I love it!!

  13. #13
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    then then one more macro, pls write to me : )))))))
    let me tell : )))

  14. #14
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    in the workbook, there is sheet name called "market" .

    i want to delete all columns in this sheet, after row 120 .
    i want to keep the rows 1-120 , delete down all of them

    what is the macro code of this? : )

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    Excel has an excellent tool for starting to learn about macros. It's called MACRO RECORDER.

    Try to play with that,
    Please Login or Register  to view this content.

  16. #16
    Forum Contributor aaaaa34's Avatar
    Join Date
    12-25-2013
    Location
    Istanbul
    MS-Off Ver
    Windows 10, MS Office 2013
    Posts
    375

    Re: copying 2 columns in one sheet, to all other sheets (except 2 sheets)

    ahhaha he realy got bored with easy and low-profile macro wishes : )))))
    tamam i ll try that FOTSİSSSSS : )))

+ 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] Copying last 6 columns of 152 excel sheets/tabs into 1 sheet
    By JOE HNG in forum Excel General
    Replies: 10
    Last Post: 02-28-2014, 03:44 AM
  2. Copying the same columns from multiple sheets into a new one
    By Gav74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2013, 06:07 AM
  3. Replies: 17
    Last Post: 02-01-2013, 12:20 PM
  4. Copy Extra Columns When copying Sheets
    By aftabn10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2011, 08:10 PM
  5. finding criteria then copying columns between sheets
    By samoolol in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-18-2011, 07:25 PM

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