Consulting

Results 1 to 3 of 3

Thread: Copy from Active workbook to opened Master Workbook

  1. #1
    VBAX Regular
    Joined
    Oct 2013
    Posts
    19
    Location

    Copy from Active workbook to opened Master Workbook

    Hi Everyone,

    I have a active workbook that I want to copy some data from the activesheet. The macro will be run from the master workbook which is c:\excel\masterwb.xlsm. Both workbooks are already opened. How do I create a macro to copy eg. Cell G5 from the activesheet to sheet1 of the master workbook? Any Help is appreciated.

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    For example:
    [vba]application.activesheet.range("G5").copy destination:=thisworkbook.sheets("Sheet1").range("G5")[/vba]
    Be as you wish to seem

  3. #3
    VBAX Regular
    Joined
    Oct 2013
    Posts
    19
    Location
    Thanks! It works.

Posting Permissions

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