+ Reply to Thread
Results 1 to 3 of 3

Code in the macro dissapears if in close and open my excel

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Boston Massachussets
    MS-Off Ver
    Excel 2007
    Posts
    13

    Code in the macro dissapears if in close and open my excel

    Hi,

    i am workin on excel-07 and in the macros i have somecode which basically goes to a sqlserver table and brings the data from a column.It runs fine.But if save everything and close the excel file and open it i dont see any code in the macro?

    Can someone please help me where i am doing wrong?

    Thanks

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Code in the macro dissapears if in close and open my excel

    Are you saving it as an xlsm file?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    Boston Massachussets
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Code in the macro dissapears if in close and open my excel

    Hi Sgh,

    that was the mistake i did.It worked fine now .


    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. Need Help with Excel Macro - Open - Close File
    By Lpitt56 in forum Excel General
    Replies: 6
    Last Post: 01-26-2012, 03:31 PM
  2. Macro to Open, Save and Close Excel Files
    By az! in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2011, 04:19 AM
  3. macro to open and close Excel workbooks
    By norman0000 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2010, 12:26 PM
  4. Merge dissapears.. with an Excel Macro.
    By GastonFranzini@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-21-2006, 09:30 AM
  5. [SOLVED] Macro to open and close an Excel file
    By Magnivy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2006, 11:35 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