Automation, MS Excel.

Durand
Member Posts: 61
Hello,
I make report for transfer a data in a Excel file with some sheet. I have a problem.
I do not reach to find the method to select a sheets of this file.
Thank you, Benoît Durand
I make report for transfer a data in a Excel file with some sheet. I have a problem.
I do not reach to find the method to select a sheets of this file.
Thank you, Benoît Durand
0
Comments
-
Have a look at this topic
http://213.119.140.220:38001/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=5;t=000001
in the Tips & Tricks forum.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Hello, I make a report which feeds a file Excel (with several Sheets), according to different criteria, with a monthly frequency. The data are sent to follow.
I should so get back the address of the last cell. In VBA I use the following code:
ActiveSheet.SpecialCells(xlLastCell).activate
SLigne = Activecell.Address
I do not reach in C / AL with the previous answers, Thank you for the help.
Benoît Durand
<img border="0" title="" alt="[Confused]" src="images/smiles/icon_confused.gif" />0 -
Selecting the last active cell in VBA is done with:
ActiveCell.SpecialCells(xlLastCell).Select
In C/AL thris translates to:
XlApplication.ActiveCell.SpecialCells(11).Select;
Tip to find the numeric value for the xlConstants: Create a VBA macro where the same function is used, put the cursor on the xlConstant and press ctrl-I (I as in Isaac).
John0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions