asnath
asked on
macro in excel to get a file
I dont know how to implement this. I am exporting a crystal report to excel sheet and shall save it to a destination folder called CRexcel. Everytime I run the report,I am going to save it in this same folder. But I want to get that file (excel file) and have to do some sorting and some formatting.
What needs to be done to go get that file and implement some formatting and sorting on that file.
I would really appreciate a quick response.
thanks in advance!
What needs to be done to go get that file and implement some formatting and sorting on that file.
I would really appreciate a quick response.
thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can create anet application. Open the excel and format it as you wish
ASKER
hi ebolek
Can u help me with the code for the net application or in the VBA editor.
Can u help me with the code for the net application or in the VBA editor.
Here is a way to get the basic code required.
Open the spreadsheet
Start recording a macro
Click TOOLS --> MACROS --> RECORD NEW MACRO
Give it a name - Doesn't really matter but remember it
Go through the steps you desire for the macro
Stop the recording (STOP Button on the macro recording popup)
Open the macro for editting
Click TOOLS --> MACRO --> MACROS
Select the macro and click EDIT
The code you see is the basic code you need from VB or VBA
mlmcc
Open the spreadsheet
Start recording a macro
Click TOOLS --> MACROS --> RECORD NEW MACRO
Give it a name - Doesn't really matter but remember it
Go through the steps you desire for the macro
Stop the recording (STOP Button on the macro recording popup)
Open the macro for editting
Click TOOLS --> MACRO --> MACROS
Select the macro and click EDIT
The code you see is the basic code you need from VB or VBA
mlmcc
ASKER
hi mlmcc
thanks for the response. I would like to know one more thing.I am going to use the same macro for all the excel files.So how do i run the same macro for the other excel file.
Thanks a lot !
thanks for the response. I would like to know one more thing.I am going to use the same macro for all the excel files.So how do i run the same macro for the other excel file.
Thanks a lot !
You can edit the macro code and then copy & paste it into other worksheets.
There is a way to use external macros as well so you could create on worksheet that contains the macro and then in each new Excel file you could reference and run the macro from the "master" worksheet. You'd probably need to seek details in the Excel forum but also this is likely more trouble then simply copy & pasting.
frodoman
There is a way to use external macros as well so you could create on worksheet that contains the macro and then in each new Excel file you could reference and run the macro from the "master" worksheet. You'd probably need to seek details in the Excel forum but also this is likely more trouble then simply copy & pasting.
frodoman
Solved the basic problem frodoman probably solved the followon question
mlmcc
mlmcc
Agreed