Consulting

Results 1 to 3 of 3

Thread: Copy and Paste Values To Another Sheet Without Showing The Switch When Run

  1. #1
    VBAX Newbie
    Joined
    Dec 2007
    Posts
    1
    Location

    Copy and Paste Values To Another Sheet Without Showing The Switch When Run

    Hi
    Please help if you can.
    I have been trying to set up a macro that copies a value in one sheet and pastes it into a cell in another sheet but when I run the macro the switch between the sheets is shown and it looks very unprofessional. Does anyone have any ideas. I don't have to copy and paste it I just want the value from one cell to be put into another on a different sheet but they can't be linked.

    Many Thanks

    Gaff

  2. #2
    VBAX Contributor PaSha's Avatar
    Joined
    Nov 2007
    Location
    Slovenia
    Posts
    104
    Location
    why can't they be linked?
    I like to help others... but sometimes i also need help ...

  3. #3
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    You can use code like:
    [VBA]Workbooks("blah.xls").Worksheets("Sheet1").Range("A1").Value = Workbooks("source.xls").Worksheets("Sheet1").Range("A1").Value[/VBA]
    rather than doing a copy and paste (though you can do that too without actually switching sheets visibly.)
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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