Consulting

Results 1 to 2 of 2

Thread: use code on a new workbook

  1. #1

    use code on a new workbook

    Hello
    i wrote a code which select rows according to some criteria and after that copy them to a new workbook (each workbook has different name).
    i need to add a new column to the new workbook (it doesn't has any code in it) which will be hyperlink (each line) to outlook and when i'll press the hyperlink the only the line which is written in this line will be copy to outlook.
    the problem is (i guess) to write the code in the original workbook and all the work to be done on the new workbook.

    thanks

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    1. Create a template sheet in your original workbook and put the necessary code in that sheet module.
    2. Copy your rows to the template sheet; add the column and create the hyperlinks
    3. Copy the template sheet to a new book and save it with the new name
    4. Clear the template sheet
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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