[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Embed or import one excel workbook to other vba

Posted on 2016-09-24
9
Medium Priority
?
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 22

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 22

Accepted Solution

by:
Roy Cox earned 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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
 
LVL 22

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 22

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 22

Expert Comment

by:Roy Cox
ID: 41815382
Pleased to help
1

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

656 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