Re: Auto populate date to seperate tables in one sheet
not sure if you are happy with solution without using VBA.
Re: Auto populate date to seperate tables in one sheet
not sure if you are happy with solution without using VBA.
Re: COUNTIFS - ANY DATA IN COLUMN A and ANY DATA IN COLUMN B
not sure if this solution helps you, the other option will be through VBA i belive.
Re: If Statement to Indicate Leave
it would good to see a sample book, but put into a direction you can use the below if statement:
=IF(SUMIF(A:A,B2,C:C)>0,SUMIF(A:A,B2,C:C),"OFF")
Re: Alter column width for weekends automatically
i hope this is what you are looking for? if you change the cell B2 with new month date it will update the file for you.
Re: VBA- Copying data from multiple Excel files
in the file you have this information, which sheet and cell this information is on? for example if you wanted Account 507 in cell B9 where will this information be in file 18112013?
Also what is the file name saved as? are they 18112013 or 181113 or something else? Also will these files be in same location?
Re: VBA- Copying data from multiple Excel files
why do you need a macro? is it just one cell value you need to copy into the master file? if so just use indirect funtion.
Re: Macro to paste values into column that matches date
do you have the date in cell AG2? as the macro is using that cell to paste the value.
Re: Removing (-) dash from a cell
you can also try one without macro.
Re: Macro to paste values into column that matches date
hope this is what you are looking for? it is based on what date you have in cell AG2 which is define the column it needs to paste the data into.
Re: VLOOKUP with multiple values - do I need a helper table?
there is a work around for this as you have mutilple lines where the name is different so its easy to create fresh lookup for that which you can keep updating if things change. Hope this helps
Re: Select a range of cells and give it a name
try the below code:
Sub NRAN()
Dim strName As String
strName = InputBox(Prompt:="Enter Range Name: The first character of a name must be a letter, an underscore character (_), or a backslash (\). Names cannot be the same as a cell reference, such as Z$100 or R1C1.Spaces are not allowed as part of a name. Use the underscore character (_) and period (.) as word separators, such as, Sales_Tax or First.Quarter.,A name can contain up to 255 characters.", _
Title:="ENTER RANGE NAME WITHOUT SPACE", Default:="ABC")
If strName = "ABC" Or _
strName = vbNullString Then
Exit Sub
Else
Cells.Select
ActiveWorkbook.Names.Add Name:=strName, RefersToR1C1:="=Sheet1!R1:R1048576"
ActiveWorkbook.Names(strName).Comment = ""
End If
End Sub
Display More
Re: move files to selected folder - code help
i think i got it and its works fine...
Sub Move_files()
Dim fso
Dim fol As String
Set fso = CreateObject("Scripting.FileSystemObject")
oldpath = Range("B1").Value & "\"
LR = Cells(Rows.Count, "A").End(xlUp).Row
For j = 4 To LR
initname = Cells(j, 1).Text
newPath = oldpath & Cells(j, 2).Text & "\"
If Not fso.folderexists(newPath) Then
fso.CreateFolder (newPath)
FileInQuestion = Dir(oldpath & initname & "*.*")
If FileInQuestion <> "" Then
' MsgBox oldpath & FileInQuestion & " As " & newPath & FileInQuestion
Name oldpath & FileInQuestion As newPath & FileInQuestion
End If
Else
FileInQuestion = Dir(oldpath & initname & "*.*")
If FileInQuestion <> "" Then
' MsgBox oldpath & FileInQuestion & " As " & newPath & FileInQuestion
Name oldpath & FileInQuestion As newPath & FileInQuestion
End If
End If
Next
End Sub
Display More
Re: move files to selected folder - code help
Thanks Patel this works very well however is it possible to create the folder if it does not exist?
Re: move files to selected folder - code help
yes that right, so in the file it should save the file name starting with Bondi (Cell A4) to C:\test\01. MC...
hi can someone please help me. I need Macro button which can move all the files which start Name in column A and move then to a folder in the same drive which is mentioned in Column B.
for example, I will enter the path where i need this to done which is cell B2. And then the macro should run and move all files which starts with Bondi (A4 cell) and move to folder which is mentioned cell B4. in case the folder does not exist then it should create the folder and move the file.
i do this daily for 500 files and move them into 20 to 23 folder each day. if some one can please create this it will help me alot. i did find few code on internet but not that good with VBA to make it work for me.
Move file if its exist:
Sub MoveFile()Dim fsoDim file As String, sfol As String, dfol As Stringfile = "test.xls" ' change to match the file namesfol = "C:\" ' change to match the source folder pathdfol = "E:\" ' change to match the destination folder pathSet fso = CreateObject("Scripting.FileSystemObject")If Not fso.FileExists(sfol & file) Then MsgBox sfol & file & " does not exist!", vbExclamation, "Source File Missing"ElseIf Not fso.FileExists(dfol & file) Then fso.MoveFile (sfol & file), dfolElse MsgBox dfol & file & " already exists!", vbExclamation, "Destination File Exists"End IfEnd Sub
Create folder if it does not exist:
Re: Alternate formula or VBA code
Ok let me start again…..i get a file on daily bases which is pasted as is in Data tab. Which in turn fills Data lookup tab and I get list of which in Tab “key”. This is used to create tab name.
R2 is the where I fill from list which is been created in Key. Which fill U2, U3, U4, K3 and K4 by vlookup from data lookup tab.
And I think the problem is in this part which is using array formula, which is from B23 to I37..
The array formula will list all client type where aware Code is same as R2 and column X in data lookup is Y.
The file works fine and it does give me the answer I did but the only issue I have is taking a very long time to update and mainly because of the array formula which is taking too long to calculate. And this is where I need help, if there is away I can get this calculation working faster.
Re: Alternate formula or VBA code
any help please??
Re: Alternate formula or VBA code
please find attached file which has the formula in it..
Re: Alternate formula or VBA code
i am still stuck, i did turn of calculation and then tried shift F9 on each each which still taking so long, and also tried F9 which look longer..
is there a way i get tried of array formula to get the data that i want or am i stuck with this?
Re: Alternate formula or VBA code
kanbriiz dont overtake a thread which does not effect you... people post things because they need help.
hi Roy, yes i do have array formula B23 to I37, as i need to pull the data from the lookup data. I am not sure how else i can pull the data. so that i can get the tab created with the information. is there a way a macro can do this?
the whole process work in this way, i get a file each day which i copy in Data tab which in turn fills data lookup tab. Then i create the tab (which is taking ages) and once completed, i paste these as value.