$$Excel-Macros$$ Re: Combining mulitple rows into one row

2010-01-11 Thread RolfJ
Yes there is, but it seems to me that it would falsify the records. On Jan 11, 2:57 pm, AlwaysLearing wrote: > Hey Guys, > I have a spreadsheet that has multiple rows of data for each employee > with each row containing the date they worked and for how long.  For > example, Mr. Smith worked on 7/

Re: $$Excel-Macros$$ Help on Date Function

2009-12-04 Thread RolfJ
Since I am firm believer in writing concise code whenever possible, especially when assisting others in learning the power of VBA, I thought it would be helpful to post a shorter version of your Move_Only_Date_To_Result routine (3 statements instead of 9): Sub Move_Only_Date_to_Result() Sheets

Re: $$Excel-Macros$$ Help required in repeating calculation using macro (This is urgent, can anyone help me)

2009-12-03 Thread RolfJ
Computing http://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm On Dec 3, 7:51 am, RolfJ wrote: > I'd be happy to help, but would need a bit more information. > > Rolf Jaeger > SoarentComputinghttp://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm > > On Dec 2,

$$Excel-Macros$$ Re: Help on Date Function

2009-12-03 Thread RolfJ
You could place the following function into a standard VBA module of your workbook: Public Function LastUpdated() As Date LastUpdated = FileDateTime(ActiveWorkbook.FullName) End Function And then use it in the cells you would like to show the date of the last saved update by entering the form

Re: $$Excel-Macros$$ Help required in repeating calculation using macro (This is urgent, can anyone help me)

2009-12-03 Thread RolfJ
I'd be happy to help, but would need a bit more information. Rolf Jaeger SoarentComputing http://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm On Dec 2, 4:52 am, bala Subrahmanyam puligadda wrote: > Hi ALL, > > Please help me in the repeating some calculations by using the macro. > >

$$Excel-Macros$$ Re: Named range in macro

2009-12-03 Thread RolfJ
The syntax for referring to named ranges is Range("{Name of Named Range}"). Also, I would strong recommend to work with Option Explicit which will require you to explicitly declare your variables. That makes your code easier to read and maintain. Give this a try: Option Explicit Private Sub Works

$$Excel-Macros$$ Re: Add a SUMPRODUCT formula to a cell with Criteria Referenced in ComboBoxes in a Userform

2009-12-03 Thread RolfJ
Try this: .Formula = "=SUMPRODUCT((C1:H1= " & UserForm1.ComboBox2.Value & ")* (A2:A13= " & UserForm1.ComboBox1.Value & ")*(C2:H13))" Hope this helped, Rolf Jaeger SoarentComputing http://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm On Dec 2, 9:54 pm, sgltaylor wrote: > Hi All, > > I

$$Excel-Macros$$ Re: Hide/Unhide and Print selected sheets

2009-11-27 Thread RolfJ
This code might do the trick for you: Const SUMMARY_SHEETNAME As String = "Summary" Sub HideUnhideSelectedSheets() Dim rCell As Range For Each rCell In Range(Worksheets(SUMMARY_SHEETNAME).Range("A2"), Worksheets(SUMMARY_SHEETNAME).Range("A" & Rows.Count).End(xlUp)) Dim sh As Works

$$Excel-Macros$$ Re: Autofill Based on a Changing Column

2009-11-27 Thread RolfJ
If I correctly understand what your are trying to do this code might do the trick: Sub CopyFormulaToRowBeyondLastOfColumnToTheLeft() Dim targetRange As Range Set targetRange = Range(ActiveCell.Offset(1), Cells (ActiveCell.Offset(, -1).End(xlDown).Row, ActiveCell.Column)) ActiveCell.Cop

$$Excel-Macros$$ Re: Need help

2009-11-24 Thread RolfJ
I can't think of any Excel-intrinsic method that would do this. However a VBA macro could. If I was to assume that your colored cells are the ONLY data on active worksheet, give this macro a try: Sub ExtractNonZeroCells() Dim db As Range Set db = ActiveSheet.UsedRange 'First results of

$$Excel-Macros$$ Re: Replace contents in a formula used for whole sheet.

2009-11-24 Thread RolfJ
You should provide a bit more detail. What's the formula? Which characters do you need to change? On Nov 24, 2:51 am, nikhil deshpande wrote: > Dear all, > > I need to change characters used to show results in (IF ELSE ) formula. > > I tried ctrl F- replace. but it is disturbing mu sheet and aski

$$Excel-Macros$$ Re: Excel check list

2009-11-23 Thread RolfJ
rivate Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) UserForm1.cmdButton.Caption = "Save Workbook" UserForm1.Show vbModal End Sub Best wishes, Rolf Jaeger SoarentComputing http://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm On Nov 23, 5:53 pm, RolfJ wro

$$Excel-Macros$$ Re: Excel check list

2009-11-23 Thread RolfJ
If I correctly understand what you are trying to do you could add a UserForm to your workbook, add five checkboxes and one command button and then place the following code in its VBA module: Option Explicit Dim b_UserIsFinished As Boolean Private Sub CheckBox1_Click() cmdButton.Enabled = All

Re: $$Excel-Macros$$ Add a column of matching numbers

2009-11-22 Thread RolfJ
Give this alternative a try. It labels all non-empty cells all the way to the last cell non-empty cell in the column: Dim aCol As Variant Dim bCol As Variant bCol = ActiveSheet.UsedRange.Columns("A") ReDim aCol(1 To UBound(bCol, 1), 1 To 1) Dim i As Long i = 1 Dim irow

$$Excel-Macros$$ Re: Change FROM email address

2009-11-22 Thread RolfJ
'All >     'my >     'code > >     With myMail >         .To = "myn...@myadd.com" >         '.From = >         .Subject = "My files" >         .Body = ActiveSheet.Range("A2").Text & vbCrLf >         .Attachments.Add CurrFile >

$$Excel-Macros$$ Re: Fwd: Urgent Help required

2009-11-20 Thread RolfJ
es' list. Best wishes, Rolf Jaeger SoarentComputing http://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm On Nov 20, 4:01 pm, RolfJ wrote: > I am not quite clear exactly when you would like an email to be sent. > Is it when you change a cell in column A ('Subject Line&

$$Excel-Macros$$ Re: Fwd: Urgent Help required

2009-11-20 Thread RolfJ
I am not quite clear exactly when you would like an email to be sent. Is it when you change a cell in column A ('Subject Line') or when you update an email address in column D. Anyhow here is code that you could place in the VBA module associated with the worksheet you would like to respond to chan

$$Excel-Macros$$ Re: Urgent Need help on formula.

2009-11-19 Thread RolfJ
This might work for you. Let's assume that the total numbers of minutes is located in cell A2. The following formulae would calculate the number of whole days, hours of next fractional day and minutes of next fractional hour: Number of days (Cell B2): =INT(A2/60/24) -> 22 for your example Hours o

$$Excel-Macros$$ Re: Change FROM email address

2009-11-17 Thread RolfJ
Did you already try to simply assign your team's group email address to the .From property of the mail item? On Nov 16, 9:01 am, Hanum wrote: > I have some VBA code that sends an email automatically after attaching > an Excel file. > The email gets sent using my corporate email account. Is there

$$Excel-Macros$$ Re: Excel VBA dynamically fill ComboBox?

2009-11-09 Thread RolfJ
Assuming that your country column is column A, place the following code into the VBA section of the form containing your three ComboBoxes (referred to as cmbBoxCountry, cmbBoxState and cmbBoxProduct) and give it a try: Private Sub cmbBoxCountry_Change() Call UpdateComboBox("B", cmbBoxState, c

$$Excel-Macros$$ Re: Store Cell formatting

2009-11-09 Thread RolfJ
Please explain why you don't save the worksheet resulting from your calculations in the intrinsic Excel format (i.e. as an Excel workbook). On Nov 8, 12:20 pm, Hemant Hegde wrote: > Hi > > After a lot of coding and lengthy calculations (takes up to 2 minutes) I get > a sheet (actually a report)

$$Excel-Macros$$ Re:

2009-11-02 Thread RolfJ
Copy the macro listed below into a standard VBA module in your workbook and give it a try. The macro will parse the data on the 'Data' worksheet and create another worksheet named 'CleanedUpData'. You can then setup the PivotTable you want on that worksheet. Sub ExtractData() Dim strTransact

$$Excel-Macros$$ Re: Help for formula

2009-11-02 Thread RolfJ
Not clear what you mean. Please provide an example. On Nov 2, 1:00 am, Nagendra Modupalli wrote: > Hi Team, > > Is there any formula to give cells continuous number for filter one.Thanks > in advance. > > -- > Thanks&Regards > Nagendra.M > > "Beautiful photos are developed by negatives in a dark

$$Excel-Macros$$ Re: Extracting Specific string and corresponding and so on.

2009-11-01 Thread RolfJ
I am not sure what you mean by fetch, but the easiest way to obtain a list of just the items that contain "PIPE" or "ELL" would be the following: Step 1: Enter the following formula into Cell E4 =IF(ISNUMBER(SEARCH("PIPE",A4)),"PIPE",IF(ISNUMBER(SEARCH ("ELL",A4)),"ELL","")) Step 2: Copy the fo

$$Excel-Macros$$ Re: Macro for providing Multiple Passward in a single worksheet.

2009-10-31 Thread RolfJ
Place this code in the VBA module for the worksheet you would like to restrict and give it a try (needless to say: for this password strategy to be bullet-proof you would have to password-protect the VBA project, so that none uf your users can have access to the passwords): Const RANGE1_PWD = "ab

$$Excel-Macros$$ Re: For Excel Book

2009-10-31 Thread RolfJ
John Walkenbach's "Excel VBA Programming for Dummies' (this is not intended as an insult. it's REALLY a great book to get started): http://spreadsheetpage.com/ Hope this helped, Rolf On Oct 29, 10:42 pm, khalid khan wrote: > Dear friends > > Please suggest me book for Excel and VBA coding > > t

$$Excel-Macros$$ Re: Macro required for consolidation

2009-10-31 Thread RolfJ
Place this code into a standard VBA module of your workbook XYZ.xls and give it a try (you will still need to add a button that invokes the macro, and I would suggest to let the user decide where to save it by using the standard File | Save As command) : Sub ConsolidateFilesIntoMasterWorkbook()

$$Excel-Macros$$ Re: Separating 1 Worksheet into Multiple Tabs

2009-10-30 Thread RolfJ
In principle that should be possible, but without knowing how the main worksheet is structured it is difficult to make any specific suggestions. It would help if you were to post a sample workbook or described the structure in some other way. On Oct 30, 7:13 am, Leo wrote: > Hello! noob here :)

$$Excel-Macros$$ Re: How do I create a drop down list to select which macro to run

2009-10-30 Thread RolfJ
Let's assume that your 3 macros are located in a standard VBA module and look like this: Sub Macro1() MsgBox ("Macro1") End Sub Sub Macro2() MsgBox ("Macro2") End Sub Sub Macro3() MsgBox ("Macro3") End Sub Now insert a UserForm in your VBA project then drop a ListBox (named ListBox1

$$Excel-Macros$$ Re: macro sometimes working sometimes not!

2009-10-29 Thread RolfJ
I was able to reproduce your problem and can offer a solution, however regrettably without being able to explain why it works. Replace the section of your code that deals with the unprotecting, copying and pasting, and re-protecting: Worksheets("Computation").Range("compute").Copy

$$Excel-Macros$$ Re: copy paste while copycell is not empty

2009-10-29 Thread RolfJ
ay you be > blessed with good health and long life. > > > > On Wed, Oct 28, 2009 at 11:20 PM, RolfJ wrote: > > > Please find below a revised and annotated version of your Post_to_Dbase > > () routine. I corrected what seemed to me a couple of logic errors > > (wh

$$Excel-Macros$$ Re: copy paste while copycell is not empty

2009-10-28 Thread RolfJ
uot;Payroll closed and posted, you may print payslips now!" >             Else >                 MsgBox "Payroll Period is already posted!" >             End If >         End With > With Application >         .ScreenUpdating = True >         .DisplayAlerts = True > E

$$Excel-Macros$$ Re: copy paste while copycell is not empty

2009-10-28 Thread RolfJ
        SearchDirection:=xlNext, _ >                             MatchCase:=False) >             If Not Rng Is Nothing Then > 'paste the entire ranged named to dbase worksheet >             ActiveSheet.Calculate >             Worksheets("Computation").Range("compute&

$$Excel-Macros$$ Re: Conditional Formating of more than one cell

2009-10-27 Thread RolfJ
ll range (example A1 and C6) to color > 3. Based on the above cell ranges A1:C6, the macro should color(Any > color) the cells. > > Hope you got my question. > > Thanks > > On Oct 27, 2:03 am, RolfJ wrote: > > > > > I am sorry, but I don't understand what you

$$Excel-Macros$$ Re: copy paste while copycell is not empty

2009-10-27 Thread RolfJ
    Sheets("PAYSLIP").Select >         Range("D41").Select >         Selection.PasteSpecial Paste:=xlPasteValues >         Application.CutCopyMode = False >         'Print_All_Pay >         Range("B1:N68").Select >         Selection.PrintOut Copies:=1 >  

$$Excel-Macros$$ Re: Conditional Formating of more than one cell

2009-10-27 Thread RolfJ
ser form with 2 input fields > asking for cell range (example A1 and C6) to color > 3. Based on the above cell ranges A1:C6, the macro should color(Any > color) the cells. > > Hope you got my question. > > Thanks > > On Oct 27, 2:03 am, RolfJ wrote: > > > > &

$$Excel-Macros$$ Re: Plz see the attached sheet solv it

2009-10-26 Thread RolfJ
Place this code into the VBA module associated with worksheet Sheet1 of your workbook and give it a try: Private Sub GO_Click() TransferClaimData ClearForm End Sub Sub TransferClaimData() Dim r As Range Set r = Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset (1) If

$$Excel-Macros$$ Re: Conditional Formating of more than one cell

2009-10-26 Thread RolfJ
> Regards, > Sri > > On Oct 24, 4:53 am, RolfJ wrote: > > > > > I can't figure a way to do this by way of conditional formating, but I > > can offer some VBA code that would do the trick. Place the following > > code into the a standard VBA module of you

$$Excel-Macros$$ Re: TO PASTE THE DATE IN ATTACHED FORMAT & VALIDATE IT

2009-10-26 Thread RolfJ
VALIDATE THE SAME. >   > THANKS FOR YOUR REPLY. >   > RAHUL GARG  > > --- On Fri, 23/10/09, RolfJ wrote: > > From: RolfJ > Subject: $$Excel-Macros$$ Re: TO PASTE THE DATE IN ATTACHED FORMAT & VALIDATE > IT > To: "MS EXCEL AND VBA MACROS" &g

$$Excel-Macros$$ Re: Need help in Excel formula

2009-10-26 Thread RolfJ
It would help to see an example of what you are trying to accomplish. On Oct 26, 4:51 am, Anantha wrote: > Hello Folks, > > For one of my assignments I'm trying to write a formula that searches > a list rom a search space. > > Here the list is a set of cells might have same or different values,

$$Excel-Macros$$ Re: copy paste while copycell is not empty

2009-10-26 Thread RolfJ
I am having difficulties following what you would like to do. In particular it is not clear to me what you mean when you say 'it stops'. Also, what to you mean to indicate with the - debugs here flag? Please post or e-mail example worksheets and I'll take a closer look. On Oct 26, 6:28 pm, O

$$Excel-Macros$$ Re: Simultaneous Equations VBA

2009-10-23 Thread RolfJ
Microsoft requires the parameter of the MInverse method of data type Variant (http://msdn.microsoft.com/en-us/library/bb239421.aspx). Try declaring CoArrInv as Variant (as in Dim CoArrInv(3,3) As Variant). Hope this helped, Rolf On Oct 18, 10:36 pm, seryozha wrote: > Hello all, > > I am atte

$$Excel-Macros$$ Re: To insert new row if

2009-10-23 Thread RolfJ
If I correctly understand your requirement this code should do: Sub InsertRowsAfter8DigitRow() Dim r As Range Set r = ActiveSheet.UsedRange.Columns("B") Dim rCell As Range For Each rCell In r.Cells If rCell.Row >= 3 Then If rCell.Offset(-1).Value = "" And Is8Di

$$Excel-Macros$$ Re: Conditional Formating of more than one cell

2009-10-23 Thread RolfJ
I can't figure a way to do this by way of conditional formating, but I can offer some VBA code that would do the trick. Place the following code into the a standard VBA module of your workbook: Public Sub ColorTable() Dim rRow As Range For Each rRow In ActiveSheet.UsedRange.Rows I

$$Excel-Macros$$ Re: - AUTOMATICALLY RUN AFTER FILE OPEN

2009-10-23 Thread RolfJ
I think I can help you with item 1, but don't understand item 2. Here's my suggestion for item 1. Let's assume you have a macro named macro1 then the code for what you are trying to do would be: Activate Workbook macro1 End Sub There were two problems with your code: 1) Spaces are not allowe

$$Excel-Macros$$ Re: Run Excel Macro?

2009-10-23 Thread RolfJ
Following Hernant's suggestion I would consider to encapsulate this process in a totally stand-alone C# application which instantiates a separate Excel session that wouldn't interfere with your regular Excel session. I would have to see the current VBA code to see how easily this could be created.

$$Excel-Macros$$ Re: TO PASTE THE DATE IN ATTACHED FORMAT & VALIDATE IT

2009-10-23 Thread RolfJ
Hi Rahul: you will need to provide a LOT more information than this if you want anyone to assist you with this problem. The first thing I noticed when I opened your workbook was that you password protected your macros. That's not a great start, because it prevented me from trying to understand wh

$$Excel-Macros$$ Re: Need help in Excle macro

2009-10-12 Thread RolfJ
If you are REALLY concerned about the users of your workbook using specific commands you could also turn them off by using the OnKey method in the Workbook_Open event handler. Here's the code on how to do that for "CTRL+X": Private Sub Workbook_Open() Application.OnKey "^{x}", "" End Sub Che

$$Excel-Macros$$ Re: Managing decimal places

2009-10-12 Thread RolfJ
As long as you DON'T try to do any calculations with cell B5 (for the reason explained by Paul) you would use the following formula in cell B5: =IF(B1="USD K",CONCATENATE("USD ",TEXT(B11,"#,###")),CONCATENATE("INR ",TEXT(B10,"#.#"))) If you do need to do calculations with the value in cell B5 I

$$Excel-Macros$$ Re: filtering dates within this week

2009-10-12 Thread RolfJ
If you don't have Excel2007 it gets a bit more complicated. Here is one way to accomplish what you would like to do (for the sake of simplicity I am assuming that your dates are in column A, and that column B can be used as helper column and that you have a header in the first row (cell A1)): Ste

$$Excel-Macros$$ Re: heyerlinking many cells

2009-10-12 Thread RolfJ
If I correctly understand Nader's requirement he would like to hyperlink each cell in one sheet to the corresponding cell in a second sheet (not all cells to cell A1 of the second sheet). I am not aware of a simple copy and paste route that would accomplish that, but can offer the following macro

$$Excel-Macros$$ Re: Hyperlinking to a text (Not the Cell) in a worksheet of same workbook

2009-10-11 Thread RolfJ
The simplest solution to this is to define names for your target cells. This is how you do that, e.g. for 'Ann': highlight the cell Ann in your Master sheet and then select Insert | Name | Define; the name for this cell automatically defaults to 'Ann' which is probably what you want; now go to th

$$Excel-Macros$$ Re: Running Mecro automatically

2009-10-11 Thread RolfJ
This pointer should help: http://www.ozgrid.com/Excel/run-macro-on-time.htm On Oct 11, 1:59 am, Manish Pansari wrote: > Hello Friends, > > I want to run a macro continuously after every five minutes. Is there > any option, by using that I can set macro run time and can run macro > automatically?

$$Excel-Macros$$ Re: Mail through MS Excel more than one person - Help

2009-10-11 Thread RolfJ
Once you include add a reference to the Microsoft Outlook library to your VBA project (using Tools | References in VBE), you can send messages with code like this: Sub SendMail() Dim objOut As Outlook.Application Dim objMail As Outlook.MailItem Dim strTo As String Dim strCC As Str

$$Excel-Macros$$ Re: Macro Help

2009-10-11 Thread RolfJ
I am not clear on what you want to write code for. Do you want to eliminate the space or do you want to intercept Excel's response to the (invalid) space in the e-mail address? On Oct 11, 3:44 am, karthikeyan wrote: > Hi, > I have enter E-mail id in one cell with space:e.g(karthi keyan > sankar.

$$Excel-Macros$$ Re: Is there code that when and Excel file opens it closes any open PowerPoint files?

2009-10-09 Thread RolfJ
It appears that you cross-posted this also at http://www.excelforum.com/excel-programming/702626-excel-macro-to-close-powerpoint.html For the benefit of the members of this forum, here the solution I sent you: Sub Workbook_Open() Dim PPApp As PowerPoint.Application Set PPApp = GetObject

$$Excel-Macros$$ Re: fill in the nos

2009-10-09 Thread RolfJ
There are of course keyboard/menu equivalents for both (but I am probably telling you the obvious, hence maybe am missing the point of your question): - Filling: Edit | Fill | Series (choose either rows or columns, then enter stop value and click on OK - Copying of a Formula: - Step 1: copy th

$$Excel-Macros$$ Re: Cap Gains calculation on shares, on FIFO basis

2009-10-08 Thread RolfJ
You are describing exactly what I had proposed. Should be straightforward to implement. Have fun, Rolf On Oct 8, 7:45 am, chinmay kamat wrote: > Thank you sir, but unfortunately this does not solve the problem. > > The data is in the following format (example): > > For purchases: > Date        

$$Excel-Macros$$ Re: Problems re-opening userform

2009-10-08 Thread RolfJ
Are you sure the ExitApp macro you placed in your workbook Rpt1.xls actually works without error? It seems to me that the UserForm UF1 in that context... Anyhow I think you can accomplish what you are trying to do simply by placing the following event handler into the ThisWorkbook VBA module of y

$$Excel-Macros$$ Re: Cap Gains calculation on shares, on FIFO basis

2009-10-08 Thread RolfJ
You could use the DATEDIF function (see e.g. http://www.cpearson.com/excel/datedif.aspx). Let's assume that your purchase date is in cell A2 and you sell date in cell B2. The formula =DATEDIF(A2,B2,"d") returns the number of days between the two dates. One way to use this function for your scena

$$Excel-Macros$$ Re: Macro to hide blank or zero value rows

2009-10-08 Thread RolfJ
It seems that the code you posted is dealing with only one of the two year columns you mentioned in your post. Give this code a try (after modifying the constant COL2 to match the range for the second year column) and see whether it accomplishes what you would like to see happening: Const COL1 As

$$Excel-Macros$$ Re: need help with excel macro

2009-10-03 Thread RolfJ
Assuming that you already populated the listbox (named ListBox1) with the file path names of Excel workbooks you could place this ListBox click event handler in the VBA module of the UserForm containing your listbox: Private Sub ListBox1_Click() If Dir(ListBox1.Value) <> "" Then Workbooks.Ope

$$Excel-Macros$$ Re: need help with excel macro

2009-10-03 Thread RolfJ
Assuming that you already populated the listbox (named ListBox1) with the file path names you would need to add this ListBox click event handler to the VBA module of the UserForm containing the listbox: Private Sub ListBox1_Click() If Dir(ListBox1.Value) <> "" Then Workbooks.Open (ListBox1.Va

$$Excel-Macros$$ Re: Appending multiple excel files into one

2009-10-03 Thread RolfJ
> declaration in current scope." for statement --> Dim path as string > > Please help. > > Suyog > > On Oct 2, 1:49 am, RolfJ wrote: > > > > > Got it. Try declaring fso this way: > > >    Dim fso As Object > >    Set fso = CreateObject(&q

$$Excel-Macros$$ Re: Help with CountIf in Macro

2009-10-02 Thread RolfJ
I have two comments. 1) If I correctly understand what you are trying to accomplish, you could simply put the formula COUNTIF(AR2:CE2,1) in cell K2 and copy it down to K3:K250. 2) It seems to me that the problem with your code is that your COUNIF formula references the whole range (arange) not s

$$Excel-Macros$$ Re: Appending multiple excel files into one

2009-10-02 Thread RolfJ
r daily reports, and only your > daily reports (!), are located in the folder "C:\test". Is that > correct? >     Ans: Yes > > 5.  The code also assumes that the format of your weekly report is > identical to the format of the daily reports. Is that the case? >      Ans: Yes &

$$Excel-Macros$$ Re: Find & Clear

2009-10-01 Thread RolfJ
Alternatively, but still along the lines proposed by Paul Schreiner, you could make your code more concise by using this approach which avoids all the activating and selecting that will slow your code down once you apply your code to larger ranges: Dim searchRange As Range Set searchRange

$$Excel-Macros$$ Re: Error 91 - Run Time

2009-10-01 Thread RolfJ
It seems to me that you skipped over the setting of the database itself, i.e. the Set dbs = statement is missing. Therefore your VBA code doesn't know what dbs is. On Oct 1, 12:05 am, kuhrty wrote: > I am trying to create a table in Access 2003 through VBA.  I keep > getting an error 91 where th

$$Excel-Macros$$ Re: Appending multiple excel files into one

2009-10-01 Thread RolfJ
You need to be a little bit more specific in HOW this code is not working for you. Obviously it is critical that you specify the range of cells you want to copy (in the code you showed it is set to "B28:F28". Is that correct? Also the code assumed that your daily reports contain the date you want