+ Reply to Thread
Results 1 to 5 of 5

Help! Can someone fix my SendEmailOnClick marco??

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    southampton
    MS-Off Ver
    Excel 2003
    Posts
    76

    Help! Can someone fix my SendEmailOnClick marco??

    Hi all

    I have this marco with a number of shapes that click and work perfectly except that when I expanded a particular table and added another shape for this click marco it now doesn't work on any of the shapes! Can't work out why. It doesn't even get as far as saving.

    Any suggestions??

    It highlights here: ThisWorkbook.SaveAs Filename:="C:\Completed Project Reviews\" & Range("AI1").Value & "\" & Range("AH1").Value & ".xls"


    Please Login or Register  to view this content.
    Last edited by ld2x07; 01-28-2015 at 05:11 AM.

  2. #2
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Help! Can someone fix my SendEmailOnClick marco??

    Hi,

    What an error message do you get when the macro stops?

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    southampton
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Help! Can someone fix my SendEmailOnClick marco??

    Hello,

    Run-time error '1004 (file could not be accessed)

    I didn't include this because I didn't want to throw anyone off the solution - I don't think access is the problem because when I go back to the previous version (before I extended the table and added another shape for the marco) it accesses the files fine, saves a copy and prepares the email perfectly.

    Its the change I made thats throwing off the marco. I'm not very VBA literate so I'm blind to what I've done..

  4. #4
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Help! Can someone fix my SendEmailOnClick marco??

    Could you please comment out all those line with "On error go to..." and run macro again to see where exactly it stops? And could you give me the information what do you have in cells "AI1" and AH1. Maybe you can provide me with an example file with the macro?

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    southampton
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Help! Can someone fix my SendEmailOnClick marco??

    I've fixed it!

    Thanks for the help. I feel I should apologise - I was looking for a zebra when it was just a horse: in moving the columns and making room in the table I shifted the cells AI1, AH1 etc. along so it was looking in a blank cell for a file name!

    It was your question that made me see it though so thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to create a Marco to run same Marco run on everysheet.
    By chriskingkiller in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2013, 02:53 AM
  2. Run marco of a source file in the source file via marco of a master patch file
    By freeman6479 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2012, 10:55 AM
  3. marco help
    By mr1104839 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2006, 12:45 PM
  4. how to use marco
    By rnparikh in forum Excel General
    Replies: 10
    Last Post: 07-30-2005, 01:05 PM
  5. Marco Help
    By schlempyasst in forum Excel General
    Replies: 0
    Last Post: 05-05-2005, 10:57 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1