Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Import Macro

Hi

This one currently has me stumped wonder if anyone can help.

Basically i am involved in a project where a number of business units will
be sending in headcount figures in a predesigned template. What i then want
to do is amalgamate these into individual tabs on a master sheet.

So for each unit they will be sending a list of employees along with other
information then under this list are a number of tables which perform various
calculations with the data.

I want to write a Macro that automatically imports this data as there are
over 20+ business units the problem is that each business unit has a
different number of staff so if i were perform it manually i would do a copy
then insert copied cells but if i am doing this automatically how will it
know how many cells to select??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Import Macro

Maybe you can pick out a column that always has data (the name field???):

dim LastRow as long
with worksheets("sheet1")
lastrow = .cells(.rows.count,"A").end(xlup).row
.range("a1:x" & lastrow).copy _
destination:=....
end with




dannykuk wrote:

Hi

This one currently has me stumped wonder if anyone can help.

Basically i am involved in a project where a number of business units will
be sending in headcount figures in a predesigned template. What i then want
to do is amalgamate these into individual tabs on a master sheet.

So for each unit they will be sending a list of employees along with other
information then under this list are a number of tables which perform various
calculations with the data.

I want to write a Macro that automatically imports this data as there are
over 20+ business units the problem is that each business unit has a
different number of staff so if i were perform it manually i would do a copy
then insert copied cells but if i am doing this automatically how will it
know how many cells to select??


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import macro Gene Augustin Excel Discussion (Misc queries) 2 March 2nd 09 10:28 PM
Import From with macro Chad Excel Programming 4 August 25th 05 08:13 PM
Import macro from another workbook by macro Ivica Excel Programming 1 May 4th 05 12:26 PM
Import and run Macro Steph[_3_] Excel Programming 3 September 28th 04 09:33 PM
Macro import Lynn[_2_] Excel Programming 3 August 7th 03 10:18 PM


All times are GMT +1. The time now is 11:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"