Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to: Import one specific sheet from multiple files

Wojtek_Dz
8 - Asteroid

Hi, i tried solve my case but I'm stuck.

 

I want to import one sheet e.g. "Please complete" (there are also other sheets) from all 12 xlsx files.

 

Schema of w-flow:

 

Wojtek_Dz_0-1631284103608.png

 

Macro 1: importing all sheet names

Wojtek_Dz_1-1631284202540.png

 

Macro 2: Import data from selected sheets

 

Wojtek_Dz_2-1631284276327.png

 

After 2nd macro I get error:  XLSX input (12) Record #1: Tool #1: 'Please complete' does not match a sheet or named range in C:\Users\XXXXXXXXXXXXXXXXXXXXX or the Excel file is corrupt.

 

 

Do you have know an answer, how to solve this problem ?

 

Thanks 

 

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Wojtek_Dz,

 

I don't think there's any need to have the extra characters around the sheet name field,

 

Replace([FileName], "<List of Sheet Names>", [Sheet Names])

 

Kind regards,

Jonathan

james9311
6 - Meteoroid

I am trying to do something similar and have been searching high and low for the solution. Could you please share how your macros are set up? 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels