Solved

Embed or import one excel workbook to other vba

Posted on 2016-09-24
9
41 Views
Last Modified: 2016-09-25
I have a multiple workbooks which has columns to Workbook and I have standard a standard excel file. All i have to copy each workbook into standard template and save the template with cell D1 and re56yrsasz z  s,m`nbx   xsnww212 3peat the processes for all workbooks

Process in detail:

Say I have workbooks as 1.xslx; 2.xlsx; 3.xslx; etc., in a particular folder

and i have standard Excel template (Xlsm)

data from (specific columns) each workbook gets copied to excel template and save the template as cell d1 of workbook

how do I create a vba to do this?

I have found some help here but how can read all the excel workbooks?

http://officetricks.com/different-methods-to-import-data-from-external-excel-file/

hope I am clear
0
Comment
Question by:Nirvana
  • 5
  • 4
9 Comments
 
LVL 17

Expert Comment

by:Roy_Cox
ID: 41813809
Attach an example of the source workbooks and the master workbook
0
 

Author Comment

by:Nirvana
ID: 41814153
0
 
LVL 17

Accepted Solution

by:
Roy_Cox earned 500 total points
ID: 41814412
Try this

The Output files should be in a subfolder named "Data" within the folder that the Input file is stored in.

The code will open each workbook in that subfolder & import the data
Input-File1.xlsm
0
 

Author Comment

by:Nirvana
ID: 41814427
Hi Roy, nothing seems to happening when i click on import. I have multiple workbooks in the source folder and i have created a folder with "data" and an excel file. when i click on it.. nothing is happening. this query is linked to the previous question i have asked. as I was able to create multiple workbooks I am posting this question

https://www.experts-exchange.com/questions/28971244/VBA-to-copy-paste-columns-form-one-file-to-other.html?anchor=a41811112#a41811112
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 17

Expert Comment

by:Roy_Cox
ID: 41814438
The code works perfectly on the sample files.  Reading the other question is that creating files for each name in the workbook?

I'm going out for an hour or so but I'll check when I get back.

I think I need to work on your previous question first.
0
 

Author Comment

by:Nirvana
ID: 41814444
Sure Roy.. thanks a ton!! for all your help. please bear in mind..output is an upload template to oracle and the data needs to be pasted from row10. again thanks a lot. appreciate it a ton!!!
0
 
LVL 17

Expert Comment

by:Roy_Cox
ID: 41814712
I have  answered your previous question.

This code works for me here, but I think it is unnecessary now that my other code produces the files. Let me know if you need any more help.
0
 

Author Closing Comment

by:Nirvana
ID: 41815086
Simply great
0
 
LVL 17

Expert Comment

by:Roy_Cox
ID: 41815382
Pleased to help
1

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now