473,320 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Macros Removed in Excel

107 100+
Hi,

I created a macro, and i created the VBA project i added one customized function in a Module(Module1) in Excel 2010.
I saved that excel and the VBA Project, i tested in the excel, its works fine. once i closed the excel and the VBA project is automatically closed

THe problem is, I opened the same excel file again, i am trying to use the function, excel shows an error. Immediately I went to View Macros, my macro is not there.

How to set/run the macro in excel2010 even i closed and reopened the excel
Jan 10 '12 #1
2 1121
MikeTheBike
639 Expert 512MB
Hi

I still use Excel 2003 but I understand that if you save your file as an xlsx file then all code is removed. The file should be saved as an xlsm Macro Enabled file (at lest that is the case for Excel 2007).

Is that the problem ???

MTB
Jan 10 '12 #2
rajujrk
107 100+
Yes, thats the Problem, I got it

Thanks... :)
Jan 11 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: chris | last post by:
I'm creating an excel document dynamically from scratch using Python and the win32com module. All is well, but now I need to add a macro to the spreadsheet and run it (to enable some sorting...
1
by: Scott Wallace | last post by:
Anyone know how to disable macros when access an Excel file through automation? I have an Excel file that fires macros when it is opened. I need to automate reading values from the file through a...
3
by: OhMyGaw | last post by:
Hello Excel/automation Gurus, I am working on an application where I have to keep a centralized database of all macros distributed to user and save the changes back on a nightly basis back to...
3
seshu
by: seshu | last post by:
Hi everybody this is seshu today iam able see an option in excel in tools menus that is macros there i have selected vb editor and wrote a small function and it is also working fine now i...
0
seshu
by: seshu | last post by:
Hi everybody this is seshu today iam able see an option in excel in tools menus that is macros there i have selected vb editor and wrote a small function and it is also working fine...
1
by: RAMRAM | last post by:
Hi, I am stuck in problem. Need to transfer data from excel to powerpoint . I would have command button that calls the VBA code. Some charts from the excel sheet should be inserted in a new...
3
LacrosseB0ss
by: LacrosseB0ss | last post by:
Quick question: is there a way to programmatically turn off the warning message for macros in Excel? (Macros can be harmful ... enable/disable) The reason for the question is on our intranet page...
5
by: elecooley | last post by:
Baically, myself and the person I sit next to use a shortcut to an Excel file. The Excel file has multiple macros. When office mate opens it, it works fine (ie all macros run, excel file gets data,)....
2
by: =?Utf-8?B?c2hyZWU=?= | last post by:
I read an Excel workbook from C# code and want to know whether there exist a macro in it or not. Can someone give me pointer how can I find it. THanks, Shrish
6
by: metalik123 | last post by:
Assume it i have a data sheet of the 15 column & i have created a command button. The command button needs to be configured in such a way that, 1. whenever i update the 15 columns & i click the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.