Question and Answer
Get multiple user selected cell range addresses and write to dictionary
Submitted by aznenginerd on 1 October, 2012 - 13:19Hello!
I am pretty new to VBA. Here is a rundown on what I am trying to do:
- 2 comments
- Read more
- 4717 reads
WRITING TO EXCEL FROM VBA
Submitted by Mez on 1 October, 2012 - 11:24I have a function which writes to EXCEL every other time
It is unstable
There is a range in a Sheet, say Sheet1, called solution
there is a 2D matrix which I need to write to excel, let's call it matrix
The dimensions of "matrix" are n x 2
Worksheets("Sheet1").Activate
dim i as integer
dim n as integer
n =UBound(matrix)
for i = 1 to n
Range("solution").Cells(i,1).ClearContents
Range("solution").Cells(i,1) = matrix(i,1)
Range("solution").Cells(i,2).ClearContents
Range("solution").Cells(i,2) = matrix(i,2)
next
Little bit lost!
Submitted by sandyUK on 1 October, 2012 - 11:24I have duplicate data in column A however each relates to a part unique record. I need to get data from columns C - F & I for all the unique records in A. In the second pass i need the data from columns B,G,H for all the records in A
So I'm a little bit lost as to how I can do this.
Thanks in advance
- 1 comment
- 2479 reads
VBA__SOLVER PROBLEM, ERROR 1004
Submitted by Mez on 1 October, 2012 - 11:16There is a cell named guess. A1
There is a cell named function which holds tfunct(guess) (ie links to the guess cell) A2
I then run "testsolve()" from another cell A3
Sometimes the error reads
"An internal error has occurred or memory was exhausted"
and sometimes it reads
ERROR 1004
method 'range' of object' _global' failed
see attachment
- 1 comment
- 2543 reads
VBA Code to save file as PDF on sheet2 and save a copy on specific file.
Submitted by cychua on 1 October, 2012 - 10:08Hi All
This is my 1st time here and 1st post.
I got 0 knowledge on VBA code. Pertaining to the subject above, i had searched through google almost more than 8 hours. And i got this code,
Sub Create_PDF()
Dim MyFullName As String
Application.ScreenUpdating = False
MyFullName = Left(ThisWorkbook.FullName, InStr(1, ThisWorkbook.FullName, ".") - 1)
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:=MyFullName, _
Quality:=xlQualityMinimum, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=True
Application.ScreenUpdating = True
End Sub
- 6 comments
- Read more
- 32717 reads
HELP ME PLEASE
Submitted by dycececr on 1 October, 2012 - 03:40Please help me to
11010
11011
11014
21020
21022
251010
101011
I want to get a result which will give roman i, ii,iii,iv etc if the diffence of succesive row is <10 and 2nd digit from right is same in two succesive cell.
Result Should be
1
i
ii
2
i
3
4
- 1 comment
- 2320 reads
EXTRACT NUMERIC FROM A ALPHANUMERIC TEXT
Submitted by dycececr on 30 September, 2012 - 18:00HELP ME PLEASE TO EXTRACT NUMERIC FROM A ALPHANUMERIC TEXT LIKE AB1234C, 123 NO, A123B456 ETC
- 3 comments
- 4073 reads
VBA macro to copy
Submitted by Thomas Collins on 30 September, 2012 - 17:00I want to copy a range of data/blanks in one column of one worksheet to a second worksheet, eliminating any blank rows. Can this be done?
Tom Collins
- 5 comments
- 3366 reads
COMPLETE EXCEL STEPS TO CONNECT YOUR DATA?
Submitted by Smokingdragon on 30 September, 2012 - 03:31Hello,
I would like to know if there are links on how to connect data in making invoice,summary,saving it to another workbook and doesn't slow your excel using VBA and without VBA. Example.How to make userform that transfer it to a data worksheet then make nice looking summary report.Best example for this is issue invoice with look up outstanding balance then less inventory. Better if the report have alarms like change color,pop up or message box that inform your needs.
I am looking on how to make one.how to connect them all together. It would be nicer with video.
- 2 comments
- Read more
- 3077 reads
Synchronize two excel sheets
Submitted by aquila87 on 26 September, 2012 - 08:04Dear All, I have a problem with two excel sheets, which I need to synchronize. For example: Sheet1 and Sheet2
I have a table in Sheet1 from row 72, which is automatically get an information from another sheet(call Products). It has a VBA code which take the rows with product details with a specific logic. (Sometimes the table in Sheet1 has 1 row, sometimes has 10 rows). I need to synchronize that specific table with the Sheet2, which will be the main one and we can add all the information from Sheet1 everytime we include information from "Product" sheet.
- 2 comments
- Read more
- 8525 reads
Add specific internet link to favorites and then send email to specific email add - heading LINK ADDED ,tru Outlook mail
Submitted by ruth on 26 September, 2012 - 02:37Hi ,
Can i make an excel button, on the click of which the link EXCELEXPERTS.COM will be added to my favorites and sending an email(outlook) to ABC@EXCELEXPERTS.COM heading LINK ADDED.
Please anyone can help.....
Regards
Ruth
- 13 comments
- 6040 reads
User-Feedback Form
Submitted by j19197 on 23 September, 2012 - 15:13Respected Sir!
1... There is a requirement to make a "User-feedback Application" for the performance and teaching skill evaluation of the class room teachers. The feedback form will be e-mailed to each student and he/she is required to input the picture, and fields like, name, ID, remarks and the opinions, and, choose some options.
2... The feedback from all students would be received via e-mail, and is requried to be tabulated including picture and all the selected options/ remarks.
- 3 comments
- Read more
- 3853 reads
Export Name Manager from one excel workbook and import to another
Submitted by davisfs2007 on 23 September, 2012 - 14:06Hi,
I had a workbook with the following tabs of reports/data:
Employee Detail Info,
Wk1 Detail Time Sheet,
Wk1 Recap,
Wk1 Invoice,
Wk2 Detail Time Sheet,
Wk2 Recap,
Wk2 Invoice,
Payroll Working File, and
Payroll Summary.
The file was sooo big and was taking too long to process because of all of the formulas, so I decided to separate the tabs in the following workbooks:
A. Employee Detail Info,
B. Week One Detail Time Sheet,
C. 1) Week One Recap and
2) Invoice,
D. Week Two Detail Time Sheet,
E. 1)Week Two Recap and
2)Invoice, and

which are the best online course Microsoft Excel 2010 for Beginners?
Submitted by duyencaothi on 22 September, 2012 - 03:32Hi, I'm student.
I'm looking for which are the best online course Microsoft Excel 2010 for Beginners?
Who know tell me.
Thanks!
- 2 comments
- 4280 reads

how to attach hyperlink by using "cell" function
Submitted by instt on 21 September, 2012 - 08:37how to attach hyperlink by using "cell" function...........?
- 1 comment
- 2587 reads
How to automatically get zodiac signs (based on date ranges)
Submitted by thorik on 18 September, 2012 - 09:13Hello friends!!
I have a list of entries of people and their personal data which also include their birthdates. I also have an empty cell in each of their lines which i would like to have their zodiac sign automatically filled (through a formula)
I would like to have a seperate sheet with date ranges for the zodiac signs
THNAK YOU!!
- 7 comments
- 34494 reads
Problems comparing cell values in different sheets (VLOOKUP)
Submitted by Deepy on 18 September, 2012 - 07:21In VBA i want to compare a cell value in one sheet with a cell value in another sheet using VLOOKUP (see below).
If (Cells(ResEnd.Row, rFind.Column) <> Application.VLookup(9400, ThisWorkbook.Sheets("Sheet1").Columns("F:G"), 2, False)) Then
MsgBox "Doesnt match"
End If
- 3 comments
- Read more
- 4900 reads
Need formula that includes TOTAL from 2 different worksheets based on multiple criteria
Submitted by davisfs2007 on 16 September, 2012 - 21:48I am looking for a formula that includes total hours worked from 2 separate invoices located on 2 separate worksheets. I used the formula below:
[code] =INDEX(INV.A.WK.1[[Standard ]],MATCH(1,(INV.A.WK.1[Last Name]=$A17)*(INV.A.WK.1[First Name]=$B17)*(INV.A.WK.1[Location]=$AK17)*(INV.A.WK.1[Division]=$AJ17),0)) [/code]
however, instead of leaving the cell at "0" or leaving it blank, the cell contains "#N/A" which does not allow me to total the column with a value. I have attached the file for better understanding. Please refer to the BLUE tab titled "Bi-Weekly Summary Report".
- 2 comments
- Read more
- 2870 reads
How to filter some data and copy some cells
Submitted by thorik on 16 September, 2012 - 19:02Hello friends! i have a google docs excel file that i want to make some changes.
i have some hundreds of lines that consist of 3 rows. They are entries of some expenses and incomes of my company.
an example of a line would be 16/09/2012, Gas, -30 (3 rows which means that at 16/09/12 i spent 30 euros on gas),
another example would be: 17/09/2012, got paid from john, 50 (which means that at 17/09/12 i received 50 euros from john)
What i want to do is create a formula that would automatically create 2 set of lines (of 3 rows again).
- 2 comments
- Read more
- 3017 reads
COMPLEX EXCEL SUB TABLE HELP
Submitted by davisfs2007 on 15 September, 2012 - 21:57Here's another CHALLENGE:
I am trying to extract data from a separate table in a separate worksheet to feed another table in another worksheet. I have attached the file so you can see what I am working with. Currently in the RED tab I have attempted one formula; however, this is not what I am looking for, completely. I like the formula; however, I would like to only update this table with individuals whose work status is "Active" as listed in the YELLOW tab. this is the formula that I tried; however, it did not work....
COMPLEX IF FORMULA HELP
Submitted by davisfs2007 on 14 September, 2012 - 03:36I need some help with a formula, but I am uncertain where to begin my search.
I have 2 worksheets labeled: "RECAP" and "INV". They both have tables labeled: "RECAP" and "INV.A" respectively.
Table "RECAP" has the following named columns (as defined by me): "RecapLocation", "RecapLast", "RecapFirst", and "RecapClass".
Table "INV.A" has the following named columns: "INVLocation", "INVFirst", "INVLast", and "LaborDesc".
(There are other rows; however, they are unnecessary for this formula.)
- 5 comments
- Read more
- 3345 reads
Copy excel graph to word document and return to excel
Submitted by claremdh on 11 September, 2012 - 21:50Hi,
I'm looking for a way to copy a graph from Excel, go into an open word document (with or without a particular name), paste the graph using the paste special "Windows Metafile" option, and then return to excel to continue with the excel macro. Is this possible?
Thanks!
- 1 comment
- 6288 reads
downloading excel file from website automatically to excel sheet
Submitted by shenazj on 11 September, 2012 - 10:01hi everyone,
i will be really grateful if you could help me on a issue.actually i have to download an excel file from a website given below
http://www.mcb.mu/en/include/popup/download-forex
automatically.can you please suggest me how i can do this.another problem is that the file gets downloaded to excel in xml format.How can I change it to .xls format.Please find the excel sheet attached.i need the table in spreadsheet in xls format to carry out certain operations, please see if you can help me.
thanks,
shenaz :) :)
- 1 comment
- 4088 reads
Sum and divide
Submitted by camilo2331 on 10 September, 2012 - 21:46Hello Guys
This is a quick question but maybe with an complicated answer
Im making a very simple survey , this documents has a scale from 1 to 5
There's a way when i type there 0 "zero" or N/A (no apply) , the formula can be set automatically to calculate the resuelt without editing the dividend
A quick example will be:
Question 1: 4
Question 2: 3
Question 3: 1
Total = 8 divide / 3 = 2.666
But i want that calculate automatically the result without editing the formula
Example
Question 1: 4
Question2: N/A
Question 3: 2
Total= 6/2 = 3
- 4 comments
- 2989 reads
macro to pick data from various files
Submitted by binnynautiyalexcel on 7 September, 2012 - 18:20Hello...Can someone help me in writing a macro which fulfils my requirement. I have an excel file contains around 10 worksheets named a,b,c and so on...... In "C" drive there is a folder where 10 workbooks (say 1, 2, 3 and so on) are stored. Every workbook there is a sheet named "price". format of price sheet in every file is same. Price sheet contains column A to Y. Workbook which has 10 worksheets is associated with 10 workbooks in such a way that worksheet A and workbook 1, worksheet B and workbook 2 and so on, are to be connected with each other.
- 5 comments
- Read more
- 4197 reads

Match Arrays value and interpolate
Submitted by shiv77patil on 7 September, 2012 - 17:29Hi
I have two arrays say Xi(1000) and Yi(1000), I want to use match function in vba and find Match(Xlval,Xi(),-1),Match(Xlval,Xi(),1) so that i have x ordinate and in the same way I will find y ordinate and interpolate. Can i do this and how I should go to achive this
Please help me
- 1 comment
- 2622 reads
Substract 2 "yyyy/mm/dd hh:mm:ss" to obtain duration in "hh:mm:ss"
Submitted by Ana on 6 September, 2012 - 21:51HI everyone!
I'm new to the forum and need some urgent help with analyzing my master's thesis data. I've stumbled across the following problem and don't find a solution anywhere on the web.... :s
I have to calculate the duration of certain events using both date and time, since some can span from the evening of one day to the morning of the next, for example: "2012/01/01 22:00:00" to "2012/01/02 04:00:00".
Arrange (Cut and Insert Cut Cells) Rows using VBA Code
Submitted by marathon123 on 6 September, 2012 - 19:26I'm a beginner and have very less knowledge on VBA.
There are 2 worksheets in the attachment - 'Sheet 1 and Sheet 2'.
Once I run the Code on 'Sheet 1' I would like to see Data as on 'Sheet 2'.
Basically, I thought to write a lot of stuff here and ended up writing a lot and had everything deleted.
My thanks in advance to all the experts.. I using Excel 2007
Thank you...
- 1 comment
- 6828 reads
Look Up question
Submitted by jezzarath on 6 September, 2012 - 17:03Afternoon,
Im sure that this is most likely easier than it seems to be to me but what I am trying to do is the following
I have 2 Tabs in a spread sheet.
I want to populte the second tab with information from the first tab based on a certian criteria.
In sheet A i have 4 bits of information
Account
order number
service
date
In Sheet B I have
Order number
Service
Date
What I need to do is populate Sheet B but only with the accounts in the name of smith.
- 2 comments
- Read more
- 2538 reads
Compare data of 2 columns if found then remove entire row of that column and if not found then highlighted with some color
Submitted by khawar426 on 5 September, 2012 - 13:13Hi,
I am using excel 2010 and my question is that I have data in many columns. Lets say I have to compare date of column B with Column A ,if(data of Column B) is found in Column A then delete entire row of column A.... if not found then column B highlighted with some color
- 1 comment
- 3010 reads

Recent comments
6 years 9 weeks ago
6 years 47 weeks ago
7 years 7 weeks ago
7 years 9 weeks ago
7 years 11 weeks ago
7 years 16 weeks ago
7 years 24 weeks ago
7 years 25 weeks ago
7 years 25 weeks ago
7 years 25 weeks ago