Results 1 to 9 of 9

Thread: Email A Worksheet (read It!)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Email A Worksheet (read It!)

    Hi everyone!

    I know the solution for this is given in the solutions. But my problem is bit diffrerent.
    I have a gui It contains following components.

    1. Select Worksheet to email(All he sheets comes in a listbox we can select any on of it.)

    2. Select recipeient to whom u want to mail (I am getting the list from outlook contacts, But i am getting it in this form---- lastname,firstname----)


    3.Enter message for the body


    4. Enter subject

    5. Send worksheet



    Now i want to send the selected worksheet to the recipient in the textbox,In text box i dont have his/her email id so i have to take it from outlook by matching the name and lastname.

    can u give me the solution

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Email A Worksheet (read It!)

    what doesnt work? are you getting errors?
    is it not sending?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Email A Worksheet (read It!)

    Moved to Office Development Forum.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    Lively Member JustinLabenne's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    64

    Re: Email A Worksheet (read It!)

    These files are in vb6 I think. Can't say for sure, but I cannot open them in Visual Studio.Net 2003, and I never used VB6 before.

    This issue has been cross posted on other forums as well with no resolution because the project cannot be opened to check out what it going on.

    #1) This line here:
    VB Code:
    1. ActiveSheet.Cells.Copy ' copy the contents of the ActiveSheet

    Where is this coming from? The code above appears to instantiate Outlook, but then all of a sudden you are trying to copy the cells from an Excel file somewhere, but I don't know if you even have an Excel workbook open because the code that this is running in (guessing here) doesn't seem to be in an Excel file.

    This issue needs resolved, is there an Excel workbook open when you press this button?
    Justin Labenne
    www.jlxl.net

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: Email A Worksheet (read It!)

    i have not used activesheets.cell.copy

    i have replaced all the ocurrences of activesheet by Sheets(List1)

    project is not opening or what?

  6. #6
    Lively Member JustinLabenne's Avatar
    Join Date
    Jul 2005
    Location
    Ohio
    Posts
    64

    Re: Email A Worksheet (read It!)

    No, I am not able to open the project you submitted here.

    What are you using to build this project?

    VB6 or Excel?
    Justin Labenne
    www.jlxl.net

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Email A Worksheet (read It!)

    If you dont have VB6 you can open the files using notepad, except for the .frx file and possible the .ctl file too.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: Email A Worksheet (read It!)

    its developed using vb 6 (activx control)
    also need excel 200 or 2002 or 2003

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    151

    Re: Email A Worksheet (read It!)

    shall i attach it once again?

Posting Permissions

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



Click Here to Expand Forum to Full Width