sree161 Posted August 31, 2017 Posted August 31, 2017 Hi, i have a code which generates two numeric outputs.i have to save them in excel. Is there any way to export them to specific cells in excel???
KickStarter15 Posted August 31, 2017 Posted August 31, 2017 @sree161, Yes, you can use _Excel_RangeWrite() for that. Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.
sree161 Posted September 28, 2017 Author Posted September 28, 2017 But it doen't tell how to paste it in specific cell?? any special command to do that??
JoHanatCent Posted September 28, 2017 Posted September 28, 2017 _Excel_RangeWrite() With parameter $vRange you specify for example cell "c3"
KickStarter15 Posted September 29, 2017 Posted September 29, 2017 @sree161, try checking with help file and see all the parameters you need for writing in excel. Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare.
sree161 Posted October 7, 2017 Author Posted October 7, 2017 Hi all, Thanks for the suggestions. I have learnt to use all those parameters. I am struck with a problem. I am running a loop, which gives 2 values at the end and have to copy this to excel. Each time the loop gives a output I am able to paste in A2 , B2 as I set those How can I automatically jump to next line i.e A3 ,B3 for next loop output??? Any logics plzz?? Thanks in advance, Sree161
water Posted October 7, 2017 Posted October 7, 2017 Use a counter (e.g. $i) that starts with 0 and is incremented each time before you write new values. Set the target cell to write to like this: "A" & $i sree161 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
sree161 Posted October 7, 2017 Author Posted October 7, 2017 2 hours ago, water said: Use a counter (e.g. $i) that starts with 0 and is incremented each time before you write new values. Set the target cell to write to like this: "A" & $i This worked. Thanks a lot
water Posted October 7, 2017 Posted October 7, 2017 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now