Results 1 to 4 of 4
  1. #1
    access12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    2

    Unhappy Please Help in creating a macro to send a module!

    Hi,

    Need urgent help if possible please!

    I want to create a macro to send a module, the module however must output in an excel xls version, to top it off the output must be split into different tabs of which I have already created in vba!

    So I've made a macro > sendobject and argument is> Module, 0-2 Days, Excel97-Excel2003Workbook(*.xls), abc@12.com, , , days, test, No,

    the 0-2 days is the file name and the email is made up for confidential reasons!

    PLEASE ASSIST

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Never heard of sending a module. What do you mean by 'module' - VBA code?

    You have a macro so what happens - error message, wrong results, nothing?

    I don't use macros, only VBA.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    access12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    2
    Sorry I'm such a noob! So basically I've created 4 query's, then used VBA to get these onto 1 excel file on 4 different tabs, i need to create a macro to fire this file out as one file with 4 tabs, preerably by using sendobject as i do for other files (they only have 1 tab so there straightforward)

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can't use SendObject or TransferSpreadsheet to export multiple sheets to same workbook. Each export will be to a new workbook. Will need custom code to export data. Review http://forums.aspfree.com/microsoft-...el-413629.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Module Error in Macro
    By TimMoffy in forum Modules
    Replies: 3
    Last Post: 06-20-2012, 09:52 AM
  2. Converting Excel Macro into Access Module
    By diddyville in forum Modules
    Replies: 1
    Last Post: 03-28-2011, 07:02 PM
  3. Module to be run by macro to validate
    By GraemeG in forum Modules
    Replies: 4
    Last Post: 02-26-2011, 06:26 AM
  4. Creating Macro from Module
    By Harley Guy in forum Modules
    Replies: 1
    Last Post: 11-08-2010, 07:44 AM
  5. Running module from Macro
    By Harley Guy in forum Modules
    Replies: 6
    Last Post: 10-27-2010, 11:05 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums