1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Copies code applies to previous workbook

Discussion in 'Business Applications' started by Amapola, May 4, 2010.

Thread Status:
Not open for further replies.
  1. Amapola

    Amapola Thread Starter

    May 4, 2010
    Hi there

    I solved my little code to create an e-mail out of an Excel sheet and now I face a different problem. I have copied the code to some existing files and when I execute the macro, the data it puts in the e-mail refers to the original Excel sheet, not the one I'm currently in.

    Is there any way I can tell it to refer to the currently used sheet?

    Thanks, Christine
  2. Keebellah

    Keebellah Trusted Advisor

    Mar 27, 2008
    First Name:
    Yes, specify it in the macro, 'tell it where to look'

    Have a sample?
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/921139

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice