Prev: VBA Editor Menu
Next: Macro to change column width and active window zoom as columns are selected
From: royhamill on 21 Apr 2010 09:48 Hello, I have 2 lists of data in different worksheets of the same workbook similar to below: Product City Apples London Oranges Birmingham Pears Manchester I want to create 1 list (2 columns) in 1 worksheet that looks like: Product City Apples London Apples Birmingham Apples Manchester Oranges London Oranges Birmingham Oranges Manchester Pears London Pears Birmingham Pears Manchester I can do this if I use MSQuery, but the spreadsheet is going to be deployed to multiple locations and saved in different server locations so the query falls over at this point. Can anyone please help with the VBA to accomplish this? Many thanks Roy
From: Jacob Skaria on 21 Apr 2010 10:35 Check out the topic "Copy from row 2 till the last row with data" at the below link by Ron de Bruin http://www.rondebruin.nl/copy2.htm -- Jacob (MVP - Excel) "royhamill" wrote: > Hello, > I have 2 lists of data in different worksheets of the same workbook > similar to below: > > Product City > Apples London > Oranges Birmingham > Pears Manchester > > > I want to create 1 list (2 columns) in 1 worksheet that looks like: > > > Product City > Apples London > Apples Birmingham > Apples Manchester > Oranges London > Oranges Birmingham > Oranges Manchester > Pears London > Pears Birmingham > Pears Manchester > > > I can do this if I use MSQuery, but the spreadsheet is going to be > deployed to multiple locations and saved in different server locations > so the query falls over at this point. > Can anyone please help with the VBA to accomplish this? > > > Many thanks > > > Roy > > >
From: royhamill on 21 Apr 2010 11:38 Hi Jacob, Thanks for this and I can see some code in there which will be useful to me for other things, but when I run the example you suggested, I get the following list Apples Oranges Pears London Birmingham Manchester As you can see, it does not give me the list I require. Any suggestions? Thanks in advance Roy "Jacob Skaria" wrote: > Check out the topic "Copy from row 2 till the last row with data" at the > below link by Ron de Bruin > > http://www.rondebruin.nl/copy2.htm > > -- > Jacob (MVP - Excel) > > > "royhamill" wrote: > > > Hello, > > I have 2 lists of data in different worksheets of the same workbook > > similar to below: > > > > Product City > > Apples London > > Oranges Birmingham > > Pears Manchester > > > > > > I want to create 1 list (2 columns) in 1 worksheet that looks like: > > > > > > Product City > > Apples London > > Apples Birmingham > > Apples Manchester > > Oranges London > > Oranges Birmingham > > Oranges Manchester > > Pears London > > Pears Birmingham > > Pears Manchester > > > > > > I can do this if I use MSQuery, but the spreadsheet is going to be > > deployed to multiple locations and saved in different server locations > > so the query falls over at this point. > > Can anyone please help with the VBA to accomplish this? > > > > > > Many thanks > > > > > > Roy > > > > > >
From: Iqbal on 22 Apr 2010 03:23 Try using pivot table with consildated regions -- using pivot table wizard "royhamill" <royhamill(a)discussions.microsoft.com> wrote in message news:27DB94A9-E82F-46D3-BEAF-4763B94B8C66(a)microsoft.com... > Hi Jacob, > Thanks for this and I can see some code in there which will be useful to > me > for other things, but when I run the example you suggested, I get the > following list > > Apples > Oranges > Pears > London > Birmingham > Manchester > > As you can see, it does not give me the list I require. Any suggestions? > > Thanks in advance > > Roy > > "Jacob Skaria" wrote: > >> Check out the topic "Copy from row 2 till the last row with data" at the >> below link by Ron de Bruin >> >> http://www.rondebruin.nl/copy2.htm >> >> -- >> Jacob (MVP - Excel) >> >> >> "royhamill" wrote: >> >> > Hello, >> > I have 2 lists of data in different worksheets of the same workbook >> > similar to below: >> > >> > Product City >> > Apples London >> > Oranges Birmingham >> > Pears Manchester >> > >> > >> > I want to create 1 list (2 columns) in 1 worksheet that looks like: >> > >> > >> > Product City >> > Apples London >> > Apples Birmingham >> > Apples Manchester >> > Oranges London >> > Oranges Birmingham >> > Oranges Manchester >> > Pears London >> > Pears Birmingham >> > Pears Manchester >> > >> > >> > I can do this if I use MSQuery, but the spreadsheet is going to be >> > deployed to multiple locations and saved in different server locations >> > so the query falls over at this point. >> > Can anyone please help with the VBA to accomplish this? >> > >> > >> > Many thanks >> > >> > >> > Roy >> > >> > >> >
|
Pages: 1 Prev: VBA Editor Menu Next: Macro to change column width and active window zoom as columns are selected |