Extracting Data from another excel file and transfer it to another excel file

clz003

New Member
Joined
Oct 14, 2023
Messages
5
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hi, I'm pretty new to excel and looked up for solutions on extracting data from another excel file and transfer it to another.
But they are all referring to the name of the sheet as "Sheet1". My issue is that the origin excel file is an autogenerated file from a CRM and it also autogenerates the sheet name and the name of the file.

So my issue is how can you rename a sheet without even specifying the original name of the sheet?
If there's any way to do this more efficiently, please let me know how
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Worksheets have two nomenclatures.

Ex:
Sheet1("Sheet1")
Sheet2("Sheet2")
Sheet3("Sheet3")

Sheet1 can be referred to as its numerical name or position in relation to all the other sheets in the workbook.
("Sheet1") is Sheet1's name. Sheet1 can remain as such and its name could be anything: "Inventory"; "Paint Colors"; "Dogs - Female", etc.

Is the autogenerated sheet name always for Sheet1 or Sheet2 or Sheet3 (note the absence of quotation marks) ?
 
Upvote 0
Worksheets have two nomenclatures.

Ex:
Sheet1("Sheet1")
Sheet2("Sheet2")
Sheet3("Sheet3")

Sheet1 can be referred to as its numerical name or position in relation to all the other sheets in the workbook.
("Sheet1") is Sheet1's name. Sheet1 can remain as such and its name could be anything: "Inventory"; "Paint Colors"; "Dogs - Female", etc.

Is the autogenerated sheet name always for Sheet1 or Sheet2 or Sheet3 (note the absence of quotation marks) ?
yes, it is autogenerated everytime
 
Upvote 0
It is autogenerated without quotation marks. From what i have tested, if i rename the excel file, it will also rename the sheet inside.
 
Upvote 0
Does it follow a set pattern ? For example ... all workbooks begin with three worksheets. So .... is this autogenerated sheet always Sheet 4 ?

Or is the autogenerated sheet always one more after the last existing sheet in the workbook ?
 
Upvote 0
Does it follow a set pattern ? For example ... all workbooks begin with three worksheets. So .... is this autogenerated sheet always Sheet 4 ?

Or is the autogenerated sheet always one more after the last existing sheet in the workbook ?
the file will be always autogenerated with 1 sheet. As for pattern it is impossible to predict since the name of the sheet will always be like this "LEAD_10142023_ebfp1a5xpd"
 
Upvote 0
If it is always generated with only one sheet ... I presume that sheet "position name" is Sheet1 (note absence of quotation marks) ?
 
Upvote 0
Great. You can refer to the "position name" > Sheet1 < in your macro code.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top