Excel 2003 :: Selection Column To Transfer Info To Another Workbook

Sep 14, 2012

I have a workbook that has multiple functions. One of these function is that when the user select a key word from a drop down validation list, a VB code transfer all information from that row from Column A to column W to the next available row on another tab.

If Not Intersect(Target, Range("X:X")) Is Nothing And Target.Cells.Count = 1 Then
Application.EnableEvents = False

If LCase(Trim(Target.Value)) = "yes" Then

[Code] ....

Is there a possibility to transfer this information into another workbook. Instead of transferring the info to a tab name "Archives" to transfer in another workbook. This workbook will only have one tab called "Archives".

This will minimize the information within my Initial workbook in project.

The path in the new workbook where the information should be transfer should be in:

"C:Documents and Settings"username"My DocumentsMy Data Sources" to an excel workbook that will be named Archives.

I know that the "Archives" workbook need to open then close after the information has been inserted...

View 8 Replies


Excel 2003 :: How To Eliminate Unneeded (hidden) Info

Jun 18, 2012

I have a 2003 Workbook that is around 7 mb. It used to be half of that but it jumped up in size which makes it harder to email, etc.

On the front page it would go out past the (known) data and I was able to reset it to the correct place but on the 2nd sheet it would go to IV 65536 without fail. I used VBA as well as physically deleting andor clearing rows and columns but to no avail.

I decided to start eliminating portions of the workbook to see if I could find where the size was coming from.

1. I deleted Regular formatting
2. I deleted Conditional formatting
3. Made everything the same font name and size, etc
4. I deleted all VBA Code.
5. Last but not least I deleted/cleared all data from all the sheets

Between each change I would save and close the workbook and check the size in Explorer.
Each deletion brought down the size, however after finishing step 5, I had a blank workbook with 3 sheets and it was still over 1.4 meg!

The next step was to remove the 2nd sheet. I did this and it went from 1.4 meg to 25 kb.

At this point I have been coping all the info into notepad and the from notepad into a new workbook.

View 2 Replies View Related

Excel 2003 :: Limiting Dropdown List Based On User Selection

Jun 27, 2014

I would like to be able to limit a drop down list's contents based on a user's selection in a different drop down. I am using Excel 2003, and I know how to do this in Access, but I can't figure it out in Excel. Basically, I have a list of themes in one drop down. The user picks a theme, and goes to a second drop down which is a list of sub-themes attributable to that one theme and no other theme.

View 1 Replies View Related

Transfer Info From One Worksheet To Another

Jun 20, 2007

Im trying to take information and have it copy to a different worsheet when a certain selection or type is put into a column.

On worksheet "Alpha"...
Column "A" will have "Maintenance, Supplies, or Payroll" in it.
Column "B" will have a currency.

On Worksheet "Bravo"...
I would like to have everything from Column "B" on "Alpha" to be placed here that has "Maintenance" in Column "A"

On Worksheet "Charlie"...
I would like to have everything from Column "B" on "Alpha" to be placed here that has "Supplies" in Column "A"

View 10 Replies View Related

VLOOKUP - Copying Info From One Workbook To Another And Populating A Column

Feb 18, 2014

I am working on two worksheets, in different workbooks. They are both lists of customers and Worksheet 1 is 2500 rows & contains up to date data & Worksheet 2 is 20000+ & includes some that is outdated. Worksheet A data is all contained within worksheet B but I need to be able to update/compare them.

Each customer in worksheet A has two unique identifiers but in B there is only one. I want to be able to add in the missing unique identifier (numeric) from A to B, which will identify which customers are still active from worksheet B.

I have been trying to do a VLOOKUP so I can insert the relevant data from the cell from A to B but I'm getting a N/A error. My formula looks like this:

=VLOOKUP('[Netsuite customer details 17feb14.xlsx]Customers'!$B$2,'[Netsuite customer details 17feb14.xlsx]Customers'!$A$2:$BE$2549,2,FALSE)

View 2 Replies View Related

Vba Select Rows Based On Info In A Column, Then Paste Into New Workbook

Jul 7, 2009

I'm using excel 2003. I would like to select and copy rows of data within a worksheet of a workbook and then paste those rows into a newly created excel workbook. That is the easy part. The complication is that I would like the macro to select the rows based on a particular string value that will be impossible to specify in a fixed way (i.e., it will change from project to project). Let's say the variable that distinguishes the rows is location, so some are from Tokyo, some New York, and some from Paris. Using vba, how can one 'splice' the data into (in this case, three) seperate workbooks based on the string/values of another variable?

I am familiar with auto-filter, but in this case, I really do need to create seperate workbooks, rather than apply calculations to a selection of the data.

View 9 Replies View Related

Unable To Transfer Info From Main Tab Using Two Variables?

Dec 9, 2013

I have an extensive excel spreadsheet in which the user adds information to the tab labelled "Input here". I then want the information to transfer to the 6 tabs (Boss 1, Boss 2, Boss 3, Boss 4, Boss 5, 2013) based on the information in column C and column G. (It also auto sorts alphabetically.)

I can get the info to transfer to 5 of the tabs without an issue (using column C) but have been unable to transfer to the tab labelled "2013" in which I need to use column G. I have tried changing my formula and replacing all the C's with G's but that did not work. In essence, I want anything that states we were notified in 2013 to transfer to the "2013" tab. I added an additional colum (Date Notified (Data)"

View 14 Replies View Related

Transfer Info From One Sheet To Another Depending On Cell Input

Jun 26, 2012

I am wanting to transfer data from one sheet to another depending on cell input


If I enter "2" in sheet1 cell B1, then I want a macro to take A1 to sheet2 but place it in A1 & A2.
Then say I enter "1" in sheet1 cell B2 goto sheet2 and put A2 into A3 and so on.

Depending on the number entered on sheet1 column B, the Macro duplicates the info from Column A in that row into column A on sheet2. ??

View 5 Replies View Related

Excel 2003 :: Hyperlink To Another Cell In A Workbook?

Aug 14, 2012

Using Excel 2003.

I have a hyperlink from cell M2 in a worksheet to cell B2 in another worksheet. I typed the cell reference on the target worksheet as B2. this works fine. The problem is that when I copy/paste the hyperlink down the column, the reference cell stays at B2. I need the reference cell to change when copied down to B3, B4, etc.

View 7 Replies View Related

Excel 2003 :: How To Amend Existing Code In Workbook

Feb 3, 2013

How to amend existing code in a workbook that is used by many different users. I am working in Excel 2003. The existing code copies data from certain cells in the active worksheet (which is password protected) into a new worksheet and saves that new worksheet to a temp folder, sends it to a particular email address using outlook and closes it, returning the user to the first workbook. You will see that it also unhides then rehides columns of the first worksheet during this process so that the user never has to see them. Problem here is that none of the users are using outlook anymore and I would prefer that this new spreadsheet that is created just be saved to the users desktop. I have found bits and pieces of what I needed on the web, but I can't seem to put it all together (I usually end up being sent to the debugger just short of having the newly created spreadsheet saved to desktop). Here is the existing code:

Private Sub CommandButton1_Click()

Essentially what I need to do is circumvent the whole email bit and save the spreadsheet that is created to the users desktop instead of a temp folder.

View 2 Replies View Related

Excel 2003 :: Shared Workbook - Add Button To Worksheet

Aug 1, 2014

I've added some code the adds a button to a worksheet

Public Sub AddSheetPrintButton()
Dim btn As Button
Dim t As Range
Set t = ActiveSheet.Range(Cells(1, 6), Cells(1, 7)) ' button position
Set btn = ActiveSheet.Buttons.Add(t.Left, t.Top, t.Width, t.Height)
With btn
.OnAction = "sheetPrint"
.Caption = "Print Sheet"
.Name = "Print"
.Font.ColorIndex = 10
End With
End Sub

This works fine until the workbook is shared!

View 1 Replies View Related

Excel 2003 :: How To Create / Run Cell A Equals Cell B Put Cell C Info In Cell D

Jan 26, 2006

I need to match data in cell A to cell B and then if they equal I need to copy the adjacent cell C to cell X . How do I set up a macro to do this automatically? I have over 5000 cells to compare and match up.. I have Office 2003.

View 7 Replies View Related

Excel 2003 :: Inserted Row Shows Up As Hidden Row In Shared Workbook?

Nov 20, 2012

The other day I inserted a row in a shared workbook and then saved it. On my screen, the inserted row was visible and was the correct row height of 12.75. My goal was to insert the row so another user sitting next to me could enter information in the new row.

After I saved the workbook, and after the user sitting next to me saved her workbook, the row I inserted should have appeared exactly the same on her screen, but it did not. Instead, the inserted row showed up as a hidden row on her screen. It was there, but the row height was collapsed to the point of invisibility.

I repeated my attempt to insert a row which the other user could edit several times, but each time I got the same result. I could not make the row show up on her screen with a row height of 12.75.

Shared workbook in Microsoft Excel 2003?

View 1 Replies View Related

Excel 2003 :: Ctrl-e Runs Wrong Same Name Macro In Different Workbook

Jun 17, 2012

I have a group of Excel (2003) template files, each with a different name. When these files are opened they ask for certain information and save themselves as a unique name. Within these files are VBA routines and functions and, because these files basically do the same things, they have the same name. These routines exist in their own unique modules each with a different name. Unfortunately, in these files there are differences in the number of columns of information these routines act on so once they have been saved I need them to only act on their own columns only.

My problem is, when I have more than 1 of these files open in the same instance of Excel, I try to run a file using a control letter combination Ctrl-e and it sometimes runs the version of the macro in the wrong file. This leads to all kinds of strange thing happening. What I can do to force the correct macro to work in all instances?

View 2 Replies View Related

Excel 2003 :: Count Column A When Y Appears Only When Column B Has X?

May 14, 2013

I need to populate sheet 1 of the spreadsheet attached.

I have tried several formula's but don't work and am getting desperate!

I need to count Column A of sheet2, when "Adverse SEN" occurs but only when there is an "x" in Column B of sheet 2 appears next to "Adverse SEN".

So basically i need to populate Sheet1 of the spreadsheet with the data is sheet2 of the spreadsheet.

I need a formula to calculate how many time an adverse SEN was - where there is an x - resubmitted, approved at meeting, delegate approval obtained, approval outstanding, rejected or approval not required.

I am using excel 2003, so please don't provide me countif functions.

View 2 Replies View Related

Excel 2003 :: Deleting Rows For Multiple Files In Separate Workbook

Sep 10, 2012

I'm new to this forum and to VBA

First-off, I'm using Excel 2003 SP3.

The setup: A software application I regularly use produces csv data files (in this case approx 300 files). These I have converted to xls format using a separate macro. The files are in one folder and named as follows eg

G1 18800.xls
G1 18802.xls
G2 18975.xls
G3 19881.xls
G3 19990.xls
G5 19990.xls

The files contain the following data:

01-Oct-03 08:00 0 0 FALSE 0
01-Oct-03 08:01 0 0 FALSE 0
01-Oct-03 08:02 0 0 FALSE 0
01-Oct-03 08:03 0 0 FALSE 0
01-Oct-03 08:04 757 20 FALSE 0.18
01-Oct-03 08:05 1714 32 FALSE 0.44
01-Oct-03 08:06 1524 32 FALSE 0.39
01-Oct-03 08:07 1665 45 FALSE 0.47
01-Oct-03 08:08 1644 42 FALSE 0.46
01-Oct-03 08:09 263 8 FALSE 0.06

I then created a macro using code I sourced from the internet, and included some addtional commands (filename, copy/paste). See below. This macro opens the all the xls data files in the folder and copies the relevant data to an analysis workbook [Analysis sheet, Results sheet, Master sheet] ie the data is copied from the data file and pasted into the Analysis worksheet. Then the results are copied from the Results sheet to the Master sheet. So far so everything works.

My problem is this: I'm stumped at how to delete rows from the xls data files before running the analysis workbook and macro. In other words, after converting the csv files to xls format I need to clean the xls data files.

I have a separate xls file with criteria data in two columns:

FileName Date
G1 18800 06-Oct-03
G1 18801 02-Oct-03
G1 18801 03-Oct-03
G1 18801 05-Oct-03
G2 18795 14-Oct-03
G2 18795 15-Oct-03
G2 18795 16-Oct-03
G2 18795 17-Oct-03

The rows in a particular data file, with dates that are not present in the Criteria workbook must be deleted. This to be done for every data file in the folder. Also, I need to exclude rows for specific time periods eg 12H00AM - 04H00AM from all the files irrespective of date.

the code needed [should a separate macro be run or can code be placed within the present macro?]. I've tried looking for something similar on the internet, but my requirements seem too customized to be able to adapt the code that I found. And of course this is waaaay above my present skill level!

Option Explicit

Sub CopyPaste()

'This code opens up data files (xls) in a specified folder and copies data A1:G17281 to an Analysis workbook (Analysis sheet).

'The data from the Results sheet is then copied to the Master sheet.

Dim wkbDest As Workbook
Dim wksDest As Worksheet
Dim wkbSource As Workbook
Dim wksSource As Worksheet
Dim MyPath As String
Dim MyFile As String


View 9 Replies View Related

Raw Data Transfer Between Sheets, 2003, Windows XP Pro

May 31, 2007

Where I work there is a file that we have to submit to management every Friday. This is a raw data file to be imported into another system. With 7 different employees accessing the same passworded file on a network drive, we have had some errors in the external program due to input typos.

I have created a worksheet for employees to input weekly data, ie workorder number, hours worked, etc. all in a neat and defined order. I have also added nested if formulas to validate data length and duplication within a group.

Now I need to transfer just the raw data from the employee entry sheet to a seperate sheet, reformated in the raw data format. This requires copying common data for all workorders worked. I can provide more data examples from work.

I would prefer that the data copy and reformat be done with formulas as the parent company frowns on excl macro's, especially unsigned.

I have 15 rows available to the employee each day to input. One of the problems I have ran across is the raw data format cannot have blank rows or rows with missing data.

View 14 Replies View Related

Excel 2003 :: Getting 1004 Error While Copying Data From Sheets To Master Tab In The Workbook

Mar 12, 2014

I have attached a workbook (excel 2003), I have few userforms in it.

I tried to copy data from all the tabs in the workbook to "Master" tab but getting an error.

You have to login to file details are as below:

View 3 Replies View Related

Excel 2003 :: Macro To Copy And Paste Special Values From Different Workbooks Into One Workbook

Nov 24, 2012

Copy over data from different workbooks and using paste special values to paste it into a new workbook using a macro. Here is what I have and what I am looking for:

My file path is

C:Documents and SettingsMy DocumentsProjectCostsDecember12

In this folder I have workbooks called:


In each workbook I have 4 worksheets


I also have a workbook called DecMonthlyTotal in the same folder with the same named worksheets.

I am looking for a macro to be placed in the DecMonthlyTotal that will pull the data from the Cashable12-13 worksheets from Function1, Function2 and Function3 and paste special the values into workbook DecMonthlyTotal, worksheet name Cashable12-13, it will also pull the data from the NonCashable12-13 worksheets from Function1, Function2 and Function3 and paste special the values into workbook DecMonthlyTotal, worksheet name NonCashable12-13

Both the Cashable12-13 and the NonCashable12-13 have Columns A - G The row that the macro should start the copying from is Row 3 for each of the workbooks; however I don't have an end row for the workbooks as this will vary.

I am using Excel version 2003.

View 1 Replies View Related

Excel 2003 :: Macro Breaks Because Can't Copy Cell And Then Cannot Select Cells In Workbook

Oct 21, 2013

i have a macro that opens 10 other workbooks and copies cells onto a "master" workbook. Until recently, everything worked fine. Suddendly, while it opens the 9 books and copies as it is expected, but when it opens the 10th wb, the macro breaks at a very simple copy/paste.

The weirdest thing is that after it breaks, I cannot select any cells neither in the opened wb nor in the master wb. This continues even after I press the "reset" button in the vba. So, I am only able to select objects (text boxes etc) in my wb and not any cells.

Also, the "arrow" icon on the design toolbar is not active. And I've tried pressing and de-pressing the F8 key, but I still cannot select any cells.

I have option explicit in the beginning of my macro. And i'm using excel 2003.

View 2 Replies View Related

Excel 2003 :: Formula To Sum Every 6th Row Of E Column?

Feb 4, 2014

The following formula was, several weeks ago, very graciously offered to me from one of Excel Forum's contributors.


My request was to find a formula that would add each 6th row starting in row e8 (e8+e14+e20+e26+e32 etc. through e6782) in column "e" when the column was 6782 rows deep from top to bottom. (i am not trying to add every number in column e, just each 6th row, starting at e8 and going through row e6782).

I entered the formula into my spread sheet and, voila, I had a sum that I assumed was accurate for my spread sheet of ticket sales. I began to question the functionality of the formula when I altered the E8:E6782 parameters (which represented the gross ticket sales) to E4:E6778, in an effort to sum up the E4 values e4,e10,e16, e22,e28,etc. . . (which represents the net values after commissions were deducted). The difference in the two sums (e8 values Versus the e4 values) was incorrect and did not represent the appropriate commissions (which should have been 15%).

View 1 Replies View Related

Excel 2003 :: Cannot Unhide Column

Nov 30, 2011

I have an Excel 2003 application where one of the columns (column D) has been hidden by some user.

When I try to unhide nothing happens. I select column C and E followed by a right-click on column E where I choose Unhide -> column D stays hidden.

View 7 Replies View Related

Excel 2003 :: Return Last Value In Column

May 25, 2012

Using Excel 2003,

Column A Column B C1 Column D
10062 01-01-2012 3:00 PM 01-02-2012
10062 01-02-2012 6:00 PM 10055
10062 01-02-2012 9:00 PM 10062
10062 01-03-2012 4:30 PM
10055 01-02-2012 1:45 PM
10055 01-02-2012 3:15 PM
10055 01-04-2012 8:30 PM

I am looking for a formula to place in C2 that will macth the number in column D with the number in column A and return the LAST date/time from column B that matches the day from cell C1.

If correct, C2 would return 01-02-2012 3:15 PM (Last date/time for 10055 on 1-2-2012)
C3 would return 01-02-2012 9:00 PM (Last date/time for 10062 on 1-2-2012)

View 9 Replies View Related

Multicolumn Listbox Selection Transfer To Cell

Dec 1, 2009

I have a activex multi-selection list box (on a worksheet). It has two columns, referenced from two columns on the worksheet (state abbreviation, state code) AA7:AB58. I'm using the following code below to transfer selections to cell A1.

View 3 Replies View Related

Loop Within Array - Transfer Selection From One Slicer To Another?

Jan 8, 2014

I need to transfer selection(s) from slicer Country to Country1 (they cannot be connected due to workbook functionality).

User can make a single or a multiple selection in the country slicer.

So basically using CUBERANKEDMEMBER I got the output from slicer Country (in cell A1 for now) and used it as input in VBA for slicer Country1

ActiveWorkbook.SlicerCaches("Slicer_Country1").VisibleSlicerItemsList = _
Array("[01_Feed].[Dosage].&[" & Range("A1"]")

I have to use VisibleSlicerItemsList as it is an external data source (so cannot use ActiveWorkbook.SlicerCaches(Slicer Name).SlicerItems(Slicer Valuel).Selected = True/false)

Now, when user chooses 2,3 or more countries, they will be in cells A2, A3, A4... etc.

So, if the user selected 2 countries I would need to run a following code:

ActiveWorkbook.SlicerCaches("Slicer_Country1").VisibleSlicerItemsList = _
Array("[01_Feed].[Dosage].&[" & Range("A1"]", "[01_Feed].[Dosage].&[" & Range("A2"]")

Now, is there any way to loop this within the array, how many cells it should take?

For i = 1 to ..
code from above
Next i

won't work because then it only takes the last value, so I kind of have to loop it within the array.

View 2 Replies View Related

Remove Multiple Selection From A List Box After Transfer

May 24, 2006

below is an excel file with a UserForm.

The goal here is to select the worksheets in one list box and transfer it to another. Multiple Selection is allowed. I am having 2 question i am struggling with.

Question 1 -
When passing the sheet names from List Box 1 to List Box 2 (using Add button) i would like the selected items of List Box 1 to be deleted after transfer. I thought i could access this using the command below but it does not work properly -> error message.

UF_PI_LINK_1.LB_SheetList.RemoveItem UF_PI_LINK_1.LB_SheetList.List(i)

Question 2 -
When the user is done the ListBox 2 need to be stored. When I save then close my workbook and then reopen it, i would like to be able to access the selection that the user has made before closing the worksheet. How can I store the content of ListBox 2 to achieve such a result. I guess i could use a use a hidden Worksheet where i could store the selection into some cells but i would like to know if there is a pure VB solution.

View 3 Replies View Related

Excel 2003 :: List Duplicates In Separate Column

Jun 14, 2013

Running Excel 2003. I have a list in column B, of numerical codes. What I want to do is find the duplicates, and list the duplicates in column D. Is this possible?

View 11 Replies View Related

Excel 2003 :: Adding Values If Column Next To It Is In Certain Range

Sep 9, 2013

I have this code working fine in excel 2007 but I need to get it working in excel 2003.


I have attached a test document to show what I'd like to do. It is basically adding values if the column next to it is in a certain range.

counting columns in Excel 2003.xls

View 3 Replies View Related

Excel 2003 :: Find Data And Move It To Column A?

Dec 30, 2011

I have a worksheet with data in it. The data could be in any column or row. I am looking for data which contains the numbers 01. If I find such data, I want to move all the data in that particular cell it to column A.

My code(which is not working) is below. I'm using Excel 2003.

Sub delete_oldads()
'the code to find 01
Dim cel As Range


View 2 Replies View Related

Excel 2003 :: Return First Value In Column That Meets Criteria

Apr 30, 2012

Using Excel 2003.

In column Y, I have a list of employee numbers (there are a random number of blank spaces in between each number)

In column AE, I have a list of clock in times (there are a random number of blank spaces in between each clock in time)

In column AY, I have a list of the same numbers from column Y (there are no blanks in this list)

Column BB. I am looking for a formula to place in cell BB2 and copy/paste down that will match the number in column Y and return the first non blank cell from that point in column AE.


10062 is employee number in cell AY2. Her employee number (10062) is also located in cell Y5. Her clock in time is located in cell AE7.

10099 is employee number in cell AY3. Her employee number (10099) is also located in cell Y14. Her clock in time is located in cell AE16.

What formula can I place in BB2 so that it returns the clock in time of employee 10062. Then copy and paste so that BB3 returns the clock in time of employee 10099?

View 6 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved