AryanSingh
(Aryan Singh)
December 20, 2019, 6:01am
1
Hello Everyone
I want to get the name of only the current active worksheet present in an excel workbook.
Is there any way to do that without using macro.
Like, in the screenshot below, the Sheet1 is active.
screenshot below, the Sheet2 is active.
So, for number one, I need this active sheet names.
@Palaniyappan
@ImPratham45
Do you have any insight in this case? if yes, please help.
Thanks & Cheers
1 Like
AshwinS2
(Ashwin S)
December 20, 2019, 6:04am
2
Hi @AryanSingh
1.use read range and pass the sheet name
2.Use excel application scope and pass the path of the excel and create a workbook variable in excel application scope workbook property.
3.use for each item in wb.GetSheets
4.print the item in message box
Thanks
Ashwin S
Thanks
Ashwin S
Hi
Kindly have a view in this thread
You might investiate using an XLS macros to get the sheet name (macro , sheet name )
Or you might go the image-automation route: Find the images that correspond to a selected sheet, then scrape between them
Cheers @AryanSingh
kuppu_samy
(Kuppusamy)
December 20, 2019, 6:09am
4
Get the sheet Name by wb.CurrentWorksheet.Name
2 Likes
AryanSingh
(Aryan Singh)
December 20, 2019, 6:21am
5
@kuppu_samy
Hello
I have tried with your way, but its giving me an error.
Thanks
AryanSingh
(Aryan Singh)
December 20, 2019, 6:24am
6
@Palaniyappan
Hi
Kindly have a view in this thread
Cheers @AryanSingh
I can’t use the macro, that is why I am saying without macro.
How can we get current worksheet without using macro?
Thanks
Aryan
1 Like
Awesome
Let me tell you how to do that
—use Start process activity and pass the file path of excel as input
—now this will open the file in foreground
—then use SEND HOT Key Activity and mention the key as alt+h without any selector chosen
—now use another send hot key activity with key o
(Not zero its o)
—and another send hot key activity with key as r
—then a final send hot key with key as ctrl+c
—now use a GET FROM CLIPBOARD activity and get the output from clipboard with a string variable named str_input
Cheers @AryanSingh
4 Likes
AryanSingh
(Aryan Singh)
December 20, 2019, 6:32am
9
@Palaniyappan
Ok, its a long process but I think it will work
Let me try.
Thanks.
1 Like
Is it working @AryanSingh
1 Like
AryanSingh
(Aryan Singh)
December 20, 2019, 7:08am
12
@Palaniyappan
Its working. Now I remember, that the shortcut keys are from the past solution of copying sheets and renaming them.
@ALL
Hello guys,
I have an excel file in that, I have various sheets. And I want to copy the a particular sheet and paste that sheet with previous values in the new sheet also but with a different name.
Example: Suppose their is a sheet name Oct 2019 and I want to copy this sheet and create same sheet with new name Nov 2019.
Manual Steps : Ctrl + Left Mouse Click and Hold and drag to the Right.
I am not sure how to do this using UiPath.
Please check the images below for better under standi…
@kuppu_samy
@Palaniyappan
@AshwinS2
Thanks & Cheers
Aryan
1 Like
system
(system)
Closed
December 23, 2019, 7:08am
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.