Question and Answer

For Excel / VBA questions - You ask, Excel Experts will answer

Unable combine two VBA codes

Dear Friends,

I am planning to create a Time Tracker for recording time outflow for jobs. For this I collected Stop watch codes and double click codes.

Now I want to combine this to record a particular activity after double click. I am so much confused with this compilation.

Kindly help me in this regard and refer the attachments

Thanks in advance.

could not set the value property. type mismatch error what does this mean?

Private Sub Okbutton_Click()

'Make Sheet1 Active
Sheets(1).Activate

'Export Data to worksheet
Cells(2, 5).Value = tbunder.Value
Cells(2, 6).Value = cbunderxp.Value
Cells(2, 3).Value = tvvolbeta.Value
Cells(2, 4).Value = tbedge.Value
Cells(2, 10).Value = tbus.Value
Cells(2, 7).Value = tbuc.Value
Cells(2, 18).Value = tbup.Value
Cells(2, 34).Value = tbhedge.Value
Cells(2, 35).Value = cbhxp.Value
Cells(2, 41).Value = tbhc.Value
Cells(2, 54).Value = tbhp.Value
Cells(2, 17).Value = tbucp.Value
Cells(2, 27).Value = tbupp.Value

'Import data from work sheet

Finding out who had a car at a specific date

Hi,

My company has a fleet of over 500 cars and i need to work out who had a car at a specific date, as the employees change cars, leave the company, start the company very often.

I have a data sheet that tells me who had the car and from and to what date, i need to look at the reg in sheet 1, to the data sheet and also the date in sheet one for example 01/01/2011 and then for the formula to tell me who had that car at that date from the data in the data tab.

Automatic Data input to sheet 2, 3 etc.

I have a register of entrants.
Columns FOR ALL SHEETS Are:
Rider Name | Race Number | Class

The class is selected from a list.

Is there a way I can have the data transfered into a seperate sheet (NAME,NUMBER,CLASS) after a have selected the entrants appropriate class.

i.e. Classes are X, Y, Z.
Sheet 1 has all entrants in a list.
Sheet 2 I would like anyone I input as Class X to appear here.
Sheet 3 I would like anyone I input as Class Y to appear here.
Sheet 4 I would like anyone I input as Class Z to appear here.

Is it possible to loop a macro based on whether it has data in the row above.

I have a macro which inserts a row and then enters data into the cell for 6 columns.
I need this to loop every six columns as long as there is data in the row above the inserted cell.
Is this possible?

Need a Macro to loop as long as there is data in the next column.

I have a macro that fills in data every six columns. I have a macro that precedes this one that adds data to a column. I need the code that would sandwich my current macro so that I would run as long as there were columns with data still there.
I'm looking for some sort of do loop. Just haven't been able to get the coding right I suspect it would looks something like this:
Sub RepeatMacro()
Do...

Loop

End Sub

If you could provide details on how to get it to repeat as long as there is any data in a column It would be greatly appreciated.

Thanks

Non-Linear interpolation

Dear ExcelExperts Admins and fellow Members,

I require your kind help to sort out a little issue I'm experiencing in interpolating from a table of given values.
My goal is to obtain a cell where I can input a value and the program gives me the corresponding interpolation value in the cell next to it.
To do so I initially tried to obtain a ratio between the minimum and maximum value and it was then that I found out that the change is not linear and the (although very small) difference produces an error too large for my purposes.

Divide one excel workbook to many

Hi Excel Experts,
Kindly support me to solve this complicated issue:
Actually, I have a workbook with three sheets each one of them contains several rows (1-250)
Each row ended with a cell and its value should be one of three values (Promotion, Pending or Ignore)
More details:
Sheet 1 name : HRDept , the cell is in column = M
Sheet 2 name : HRDet ,the cell is in column = N
Sheet 3 name : HROff ,the cell is in column = P

my computer switched microsoft versions on me without asking ;-)

I have microsoft office 2010 starter on my laptop which i bought June 2011. I wanted to use my existing version of 2007 and installed and used it successfully since then. However, this week, and I haven't done anything, my laptop has started opening existing documents in 2010 version, and in the case of excel files isn't giving me the option to right click and open with 2007 excel version. How do I change my default setting back to the 2007 program? I assume this is what's needed. (I'm not technically computer minded). I can't even find the 2007 version in my programs!

Split Text from Column to rows

Wonder if anyone can help me out with the VBA code. Following is the example of table that I would eventually have to split

Source
------
PART_ID DESCRIPTION TYPE
00001 CAPILLARY X,Y
00002 HEATER BLOCK X,Y,Z
00003 FRAME Y

Output needed
-------------

PART_ID DESCRIPTION TYPE
00001 CAPILLARY X
00001 CAPILLARY Y
00002 HEATER_BLOCK X
00002 HEATER_BLOCK Y
00002 HEATER_BLOCK Z
00003 FRAME Y

Thanking in advanced.. :D

Chitra

How to share rows between excel sheets?

Is it possible to have one sheet reference another sheet to populate an entire row?

We are working on a file in Excel 2010 for a schedule that has one master schedule sheet (tab1) and then a daily sheet including other data. What we are trying to do is connect Tab1 Rows to appear on Tab2 or Tab3. We would like to be able to update Tab1 Master sheet and have it populate the other sheets that it is connected to. We understand how to do this for individual cells using the = function, but we are unsure how to do this by row.

Attached document as a reference to follow this example:

How to auto copy rows based on date

Okay, we are looking to use excel as a quick way to manage our projects internally. Basically we have a sheet for each employee, plus a "Today" task list as a sheet, and a "completed" task list as a sheet.

Each employee will have 4 columns of information.
A = Job#
B = Description
C = Due Date
D = Notes about task. (This will be simple descriptions like ... Complete, Sending to Print, Sent to Client, etc)

What we are looking to do is have information from the employee tasks auto copy to the "today" and "complete" sheets automatically based on the date and the Notes section.

Run Macro Once select/deselect a cell

Dear experts,
I made a small macro to change the input language from English to another one "Once select a specific cell"
And also it re-activate the English when deselect this cell
--
Actually I need your support to make this happen when I select any cell in a specific “row”
So, once a cell from that row selected a Macro should start to change the language then the English will back again when I select any cell out of this row

Note: I attached a file for more details
http://www.mediafire.com/?ksjzy1a3il5pmdj

Thanks many in advance

AutoFilter-Copy Paste-Save sheet-Delete info

Hi All,

It would be greate if some one help me on this,

I have created a macro for the following,

1- It selects the data from "Data" sheet
2-Copy and past it in "ADL" sheet
3-We have Main sheet, which has few Macro buttons to execute above 1 & 2 Action.

is it possible?

when i write 12345678912345678912345 in a cell i got displayed this "1.23457E+22" or "12345678912345600000000.00". it shows zeros after 15th digit. so is it possible to make it display fully like i wrote in a first place. thanks in advance

SUMPRODUCT with criteria to evaluate items greater than 1 as 1

Hi,

I have an issue in evaluating actual project spend for people working on the project.
The cost is evaluated by DAY RATE x FULL TIME EQUIVALENT (FTE).
The FTE figure is used for evaluation of cost and also for the evaluation of the additional effort used over normal hours worked.

My issue is that I need to record where resources work over 1 FTE (ie. over their allotted 7 hours a day) however when evaluating the cost if greater than 1 is entered I need to evaluate it as 1

EG.
ColA -------------- ColB
DAY RATE------ FTE
150 ---------------- 0.9
200 ---------------- 0.8

Copy Data to other sheet with some conditions

Dear Team,
I need your help to write a macro for this scenario I have
Actually as you can see in the attached excel, I have this kind of row data “sheet1”
And what I’m going to asking for :

1-How I can copy cells (A$, B$,E$) form each row to sheet2 “ n” times depending on number in the cell D$.
2-Taking in consideration that I must kept the first row in the two sheets as “columns heading”
3-And the cell E$ in sheet2 = the assembling of values in (E$,D$,G$ for n=1 and E$,D$,G$,H$ and E$,D$,G$,H$,I$ for n=3 if exist.
4-The Rest of cells in sheet2 will filled by another way

lookup, choose and sort

Suppose I have in a separate sheet in a workbook a very long column of random numbers. These are NOT produced by Rand() so using that function does not suit my needs in this case. Just take the long column of numbers as given.

In the worksheet I am working in I need to insert a number, n, of observations in a particular cell. Say, for example "25". Upon entering the value for n I need to automatically fill the adjacent column with any 25 numbers from the long column of random numbers in the other worksheet, sorted from lowest to highest.

Problems with a Macro.

Hello. I have this macro to log cell changes:

Dim PreviousValue
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count = 1 Then
If Target.Value <> PreviousValue Then
Sheets("log").Cells(65000, 1).End(xlUp).Offset(1, 0).Value = _
Application.UserName & " changed cell " & Target.Address _
& " from " & PreviousValue & " to " & Target.Value
Sheets("log").Cells(65000, 1).End(xlUp).Offset(0, 1).Value = Now
End If
End If
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Copy excel data from one worksheet to cell in another worksheet

I am not very good with excel but I have a workbook that I want info (text)to copy over to another sheet when I enter it in first sheet. Try to make it simple.!! Lol...

copy formulae across dynamic range

I need to create ranges of formulae which are dynamic in both directions – i.e. across an unknown number of rows (years) and columns (properties on which rent has to be calculated). The raw data (initial rents & start years for each property) will be exported from a database to a dynamic named range. in a separate range I then want to calculate the annual rent for a number of years for each property. Each time the data is exported, the number of properties (columns) and rows (years) will be different.

Find value, copy cell contents and paste to adjacent column (RESOLVED)

Need help to change the following Excel Macro (VB) code to perform find of value $ in Column A,then copy to ColumnB and fill down where there is used cell data in Column A until Blank cell is reached. There are 1703 occurrences of $ in Column A and a total line count of 60959 (includes variable data and blank empty cells). I have also attached a small sample of what I am seeing with two different options for what I'd like to see as my output. You can assume that value $ is the header and it needs to be prefixed to the data below it, until another occurrence of $ is reached.

formula to insert rows based on a range of Nos. then copy contents down

Hi

Is there a formula or macro that will look at a range of nos. like in A1 - B1 and insert the relevant number of rows like

I've done here manually then copy the contents of C1-G1 down to row 10?  Then do the same for subsequent ranges

below these, we will have a sheet with hundreds of these ranges on.

thanks

Multiple files

Hi ,
My english not very weel, but i wiil try to ask.

I have a lot of excel files with worker names.

And i need to create automaticly a excel file which one will filled up the from multiple excels to one excel.

with containing information

File name1: =sheet2!N9; =sheet3!N15; sheet4!k7 ; =sheet4!K39
File name2: =sheet2!N9; =sheet3!N15; sheet4!k7 ; =sheet4!K39

and utc

Having Trouble Getting My Userform to Populate the Corresponding Excel Spreadsheet...

Hello:

My name is Mich and I'm new to the group and I'm having an issue wth a userform that I created that needs to feed data to an Excel spreadsheet within the same woorkbook.

Organizing data automation

Hi, I have thousands of rows to organize which seems and impossible task to do manually. I have email and phone number alternating in one column. What I need is to put them into two separate columns, copying the phone number from eg D3 and pasting it into E2, then deleting the empty row. Tried lots of things, no idea how to do it except manually, please help. See the attached file, it's hard to explain exactly.

helpme.png

import text file in excel

hi
i have to import data from text file line by line with certain condition check. please help if the same could be done with a vba code
text file is generated from other software

Eric The Analyst's picture

Remove random symbols from my data

I have a data set of names (text) and randomly placed throughout the text is the asterisk symbol “*”. See example below. Is there an easy way to delete the asterisk?
I tried the find/replace function but when I tell excel to find the “*” and replace it with nothing, I lose all of my data. It gets deleted and the cells are empty.

Any idea on how I can do this? Thanks you all!

Name:
Mickey *Mouse
*Donald E. Duck
William *Penn
Tom* T Sawyer
Big Willie *Smith

Buy to let calculator

Hi
I see you have a Buy or Rent Calculator. I was wondering if you also had a Buy To Let calculator.
thanks

IF function

Hi !!

My IF function never works so I need some help :)

I have a spreadsheet with columns for Item description (column B) and Item No.(column B) I'd like to populate the Item No automatically maybe using IF function, for example:

IF "B1" = ball then "A1" = 1000, IF "B1" = pen then "A1" = 2000, IF "B1" = bottle then "A1" = 3000

How should I do it ??

Thank you.

Syndicate content