Consulting

Results 1 to 2 of 2

Thread: Workbook -macros query

  1. #1

    Workbook -macros query

    HI,

    Im new to the world of macros/VBA...Pls help me to write a macro to copy a data from one workbook to another work book.

    1.workbook1 name as MASTER.xlsx, workbook 2 as DEST.Xlsx

    2. in Master tab "AB" is having a data from Range (A1:K300),copy this data and paste it on DEST.xlsx tab "AB"

    3.both workbooks will be open and active before run the macro.

    4.macro code will be written on another excel/workbook name "MACRO1" with one button,when it clicks the macro should run.

    Pls help.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Workbooks("MASTER.xlsx").Worksheets("AB").Range("A1:K300").Copy
    Workbooks("DEST.Xlsx").Worksheets("AB").Range("A1")
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •