# Excel scope question

**URL:** <https://forum.uipath.com/t/excel-scope-question/402919>\
**Category:** Help\
**Tags:** studio, activities, excel\
**Created:** [February 27, 2022, 11:11pm UTC](https://forum.uipath.com/t/excel-scope-question/402919 "2022-02-27T23:11:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Learner](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/a_learner/32/181354_2.png) [@A\_Learner](https://forum.uipath.com/u/A_Learner)\
**Post date:** [February 27, 2022, 11:11pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/1 "2022-02-27T23:11:35Z")

</div>

Hi,  
Within Excel application scope I am using Read Range from Sheet1, using write Range to write to Sheet2, and appending to Sheet3. Can I use the same Excel Scope because it is the same Excel File?

Thank you,

---

<div class="post-metadata">

**Author:** ![gustavo.cervelin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gustavo.cervelin/32/520628_2.png) [@gustavo.cervelin](https://forum.uipath.com/u/gustavo.cervelin)\
**Post date:** [February 27, 2022, 11:18pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/2 "2022-02-27T23:18:39Z")

</div>

Hi @A_Learner,

Yes, you can use the same Excel Application Scope. It will not be a problem.

Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![A\_Learner](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/a_learner/32/181354_2.png) [@A\_Learner](https://forum.uipath.com/u/A_Learner)\
**Post date:** [February 27, 2022, 11:31pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/3 "2022-02-27T23:31:40Z")

</div>

Thank you, @gustavo.cervelin! For some reason, I am getting Exception. File being used by another process error.

---

<div class="post-metadata">

**Author:** ![gustavo.cervelin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gustavo.cervelin/32/520628_2.png) [@gustavo.cervelin](https://forum.uipath.com/u/gustavo.cervelin)\
**Post date:** [February 27, 2022, 11:40pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/4 "2022-02-27T23:40:52Z")

</div>

Hi @A_Learner,

Make sure all activities you are using (Read Range, Write Range and Append Range) inside of the Excel Application Scope are from App Integration - Excel

 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/f/f/3ff1f85bc394b70ff1b6db2b6dd8680440a86d8d.png)

If you use the activities from Workbook inside of the Excel Application Scope, you will get this error

 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/e/e/7ee7a2a7b5f3023caf5fc1f224c1a3a5bc9e4575.png)

If this solves your problem, kindly mark this post as solution to close this topic.

If you need extra help and/or have any question, please let me know 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![THIRU\_NANI](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thiru_nani/32/317561_2.png) [@THIRU\_NANI](https://forum.uipath.com/u/THIRU_NANI)\
**Post date:** [February 28, 2022, 4:57am UTC](https://forum.uipath.com/t/excel-scope-question/402919/5 "2022-02-28T04:57:16Z")

</div>

Hi!

You can use only workbook activities it won’t require any Application scope. if the file is opened in Excel. we can’t perform operations…

if you’re using Excel activities which @gustavo.cervelin mentioned you can perform the actions even if the excel is opened.

**Note:** Don’t use mix ex:- Excel Application scope inside that Read range from workbook instead of read range from excel.

you can use multiple read range by using one excel application scope. if the file is presented in the same location.

or

you can also read the different sheets which is presented in the same file.

Regards,  
NaNi

---

<div class="post-metadata">

**Author:** ![pravin\_calvin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pravin_calvin/32/212149_2.png) [@pravin\_calvin](https://forum.uipath.com/u/pravin_calvin)\
**Post date:** [February 28, 2022, 4:57am UTC](https://forum.uipath.com/t/excel-scope-question/402919/6 "2022-02-28T04:57:44Z")

</div>

Hi @A_Learner

I think its better to go with workbook activities as its works in back ground you may not get the exception excel is opened until its opened manually!

As you re using the the multiple read range with excel application scope when you re appending the data to another excel the previous excel is still opened that causes the exception as you may try with close work workbook activities or kill process to over the issue each time you re appending.

Regards

---

<div class="post-metadata">

**Author:** ![A\_Learner](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/a_learner/32/181354_2.png) [@A\_Learner](https://forum.uipath.com/u/A_Learner)\
**Post date:** [February 28, 2022, 3:10pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/7 "2022-02-28T15:10:19Z")

</div>

Thank you @gustavo.cervelin

---

<div class="post-metadata">

**Author:** ![A\_Learner](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/a_learner/32/181354_2.png) [@A\_Learner](https://forum.uipath.com/u/A_Learner)\
**Post date:** [February 28, 2022, 3:10pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/8 "2022-02-28T15:10:50Z")

</div>

Thank you, @THIRU_NANI

---

<div class="post-metadata">

**Author:** ![A\_Learner](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/a_learner/32/181354_2.png) [@A\_Learner](https://forum.uipath.com/u/A_Learner)\
**Post date:** [February 28, 2022, 3:11pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/9 "2022-02-28T15:11:11Z")

</div>

Thanks a lot @pravin_calvin

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [March 3, 2022, 3:11pm UTC](https://forum.uipath.com/t/excel-scope-question/402919/10 "2022-03-03T15:11:18Z")

</div>

Closed on March 3, 2022, 3:11pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
