Create List Of Drives (local And Network Mapped) On Computer

Nov 5, 2012

how to create a list of the drives on my computer using VBA. Maybe I missed something.

View 2 Replies


ADVERTISEMENT

Loop Through Mapped Network Folder

May 27, 2008

I have read your loop instructions under FAQ entitled; Loop through a folder of workbooks. It works very well on a local drive but I need to have it loop through a folder on a network drive. the drive is mapped as h:\computer name2008shareddocs

View 2 Replies View Related

Excel 2013 :: Add-Ins (specifically Explode) And Network Drives

May 27, 2014

My office just upgraded from office 2007 to 2013. I went through my normal routine, adding back in settings and Add-ins. Everything seemed fine. I rely heavily on Aaron Blood's Explode Add-in. It seemed to work. If I open a local spreadsheet it works (same with ledger shade and some other personal add-ins). However, when I open a file on the network, the explode and ledger shade add-ins do not appear. My personal add-ins do, but I have set myself as a trusted root source. I am sure I have a security problem somewhere.

I went into the trust center/trusted locations and set my network drive (and it's subfolders) to be a trusted location. That did not seem to fix it.

I also tried copying a file that does not work on the network to my local drive to see if the add-ins would work - once on my local drive they do work. Also if I open a blank or local file, then open a network file, the add-ins are still there and working.

View 1 Replies View Related

Slow Workbook When Connected To Local Network

Apr 26, 2009

I have Excel 2003 SP3 on Vista Home Basic fully patched. My code runs very slowly until I pull out the ethernet cable then it runs quickly.

View 9 Replies View Related

How To Get To A Computer On Our Network Using Code

Jan 29, 2007

I have code below that works well most of the time. One of the cases below will not work. It insists on requiring a name and password.

(note: it is the only Windows 2000 operating systems)

I want to enter this in my case line to automatically add the username and password.

Let's say the username is: "dave" and the password is: "happy"

How can I add this to this part of the code?

Case "DJ"
strfilename = "\DAVEJONESDavesProposals" & strfilename

Sub Save_and_SaveSalesman()

Dim strPath As String, strPath2 As String, CurrPath As String

Dim WB1 As Workbook
Dim WB2 As Workbook

View 9 Replies View Related

Macro Does Not Run On Different Computer In Same Network

Jan 20, 2007

I wrote a macro that runs perfect when started from my pc, but if started from a different ps which is logged into the same network it doesn't run, also the macro is stored on the server. I have a code in the private section of the workbook:

Private Sub Workbook_Open()
Call FINAL
End Sub

then the macro 'FINAL' is stored in the 'Modules' section and starts with:

Sub FINAL()
'this part opens the Edit/Links dialog from which the user has to choose the relevant model
Dim Which_financial_model_contains_the_data As String
ActiveWorkbook.ChangeLink Name:= _
"T:DEALSSSalsa (Project)Financial modelsProject Salsa Model - BASED ON SPONSOR CASE - b - 20061214.xls" _
, NewName:= _
"Which_financial_model_contains_the_data" _
, Type:=xlExcelLinks

View 6 Replies View Related

Comparing Few Network Computers Folders Against Master Computer?

Jan 26, 2014

I've been tasked with writing an excel spreadsheet that will compare A directory from a "Master directory" against another networked computer directory...

Master Directory
R_PC1
R_PC2
R_PC3

[Code]....

So what were trying to do is have the table show us which pc has a file that either

1) Does not show up on the master
2) Matches the master file name but the file size is different
3) Matches the master file name but the time stamp is different (Show if its Newer or Older)
4) Shows up on the master but does not show up on the remote.

The amount of rows will be between 3000 and 5000 .

View 9 Replies View Related

Macro To Create Folder In Computer

Mar 6, 2014

Can a macro create a folder in my computer and use the value in cell A1 as the folder name? This is where I want the folder to be created C:UsersUserDesktop.

View 8 Replies View Related

Create Dynamic Chart Where Network Days Incorporated?

Nov 11, 2013

Is it possible to create a dynamic chart, where "networkdays" is incorporated? You will in other words have a start day and an end day, and the chart will be drawn of the periods in between.

View 1 Replies View Related

Macro To Map Drives

Nov 7, 2008

I have a issue at work where I can Map Drives but then when i reboot/log out the drives do not re-map. I have checked "Reconnect On Logon" but that does not work. I have called up IT and they just beat around the bush.

I am wondering, if there is a way for me to create a Macro to Map drives?
Also, for the macro to check if the drives are already mapped, if so then map it, if not then to skip mapping this drive.

I am hoping this can be made as convenient as:

X = C:Documents and SettingsPratikDesktopTest1

B = C:Documents and SettingsPratikDesktopData2

Where the X / B specify the drive letters.

View 14 Replies View Related

Searching For File On All Drives

Jun 15, 2007

The Code below searches for a file and displays how many files by that name it found.

Sub Test()
With Application.FileSearch
.NewSearch
.LookIn = "C:"
.SearchSubFolders = True

.Filename = "Temp.txt"

If .Execute > 0 Then
MsgBox ("Success: " & .FoundFiles.Count)
Else
MsgBox ("Fail")
End If
End With
End Sub

However, Flashdrives are a common use among those that will use the code, such that I need the code to not only search the hard drive C: but all hard drives and flash drives. Using .Lookin = My Computer did not find the files stored on my Flash Drive.
It finds it using .Lookin = "K:" but I can not rely on my flash drive always being K:. It does not find it using .Lookin = "PumaFlash" (Name of flash drive)

I'm looking for one of two things: Code that will Search all hard drives and flash drives (optical drives can be included) at once Code that will Find path for all hard drives and Flash drives and then search them separately

View 2 Replies View Related

Mapped Driver Macro Option

Feb 3, 2009

I finally completed a macro that would loop through selected workbooks in a folder and pull results to be shown in a new workbook.

This works fine by using a worksheet where the files are listed and in a1 of the worksheet, the path to the folder.

We have one workstation on the LAN with restricted access to the server, and therefore has mapped drives. Therefore the path to the folder containing the workbooks is different.

How could I instruct the macro when invoked - so in the case of that workstation - if the macro cannot find the files at the path stated in a1 of the workbook, it is to try a different location (The folder containing the workbooks is actually Drive:T)

View 10 Replies View Related

Move / Rename File On Mapped Drive?

Jul 25, 2014

I am trying to move and rename an excel template file using a macro. My code works fine when it is moving the file locally on my C: drive. However, when I try to do it on a mapped network drive I get a Path/File access error. Here is the relevant code:

[Code] ......

I tried it both ways that are commented out - both give me the error. I have permissions to read/write in all relevant folders. What am I missing here?

View 2 Replies View Related

VLOOKUP #N/A Error Between Workbooks On Separate Drives

Nov 20, 2007

I have 5 worksheets in file Z on drive J which are full of VLOOKUP formulas pulling data from several files on drive K. Each worksheet pulls data from it's own file on drive K...ie, worksheet AB pulls all of it's data from file AB_2008, etc. On worksheet CD there are two rows which populate with #N/A when I open file Z, but if I open file CD_2008, the #N/A's automatically populate with the correct values. Any ideas??? I am not a programer but I have pretty fair excel skills...but this one has stumped me.

Here's my formula:

=VLOOKUP($A19,'K:sopworkbookssop_2008[sop_2008_rt.xls]11-RT-PPR'!$A:$BQ,C$34,FALSE)

View 9 Replies View Related

How To Change Filepath Or Dir When Users Have Drive Mapped Differently

Oct 23, 2013

I have written code that allows the user to open a file. To make things easier I changed the file path to point directly to the folder where all the needed files will be placed. The problem is everyone that will be using this work book map their drives differently. One user may have it as H, and the other as J. Also users can have the same drive mapped but at two different starting points. Ex: H:DataReportsxxxyyy or H:Reportsxxxxyyy this causes the code to crash. Is there a way do default the path so it will not matter how the drives are mapped?

Here is what I am using so far:

Dim filt As Variant ' flit to be used in the getopenfile. variant is need for its multiple
Dim FilterIndex As Integer
Dim Title As String

[Code]....

View 2 Replies View Related

Code That Allows Me To Print A Word Document On One Of My Drives With The Click Of A Button

Nov 9, 2009

I currently have this code that allows me to print a word document on one of my drives with the click of a button in excel. I need to modify it because one of the files I want to print as well is a pdf file. how to modify it so I can do that?

Set appWrd = CreateObject("Word.Application")
Set docOpen = appWrd.Documents.Open("F:groupsdeptservCDTISA.doc")
docOpen.PrintOut
docOpen.Close
appWrd.Quit

View 9 Replies View Related

Create List Of All Files In Folder And Make List Hyperlinks To File?

May 17, 2013

i have many excel workbooks in a folder i want a macro that will get the names of all the files and make the file names so extracted as a hyperlink to open the files.

View 1 Replies View Related

Relating List Of Random Numbers To A List Of Names To Create Rota

Nov 21, 2013

I'm trying to create a staff rota which will populate a rota randomly when prompted - I have been trying to find some way of connecting the random lists and the staff names, though this has proved difficult (to say the least!). How best to proceed? I'm also fully aware of the possibility that my present design will also double book people (place then on reception and telephone duty simultaneously).

View 3 Replies View Related

Excel 2007 :: Create List Of Barcodes From List Of Numbers On Worksheet?

Feb 25, 2014

Is it posible and how to create a list of barcodes from a list of numbers on the worksheet?

Strokescribe seems to have some ind of solution but the data can't come from the worksheet.

View 8 Replies View Related

Create Unique List From Matrix & List Frequency Of Each Occurrence

May 23, 2009

I've searched the forum and believe this thread to be the closest to what im looking for, but its doesnt completely apply: matrix to list conversion. I have an attachment to support my questions (see attached). I have a matrix of words (strings) that contain repeating and non-repeating contents. The matrix also has spaces which are of no value. Essentially, the VBA needs to ' analyze' this matrix and create a consolidated frequency list (as shown in the file).

The matrices are HUGE and therefore some of the clumsy VBA i am using is turning out to be a bit inefficient. The file also contains formulas and such that I cannot use AutoFilter nor can I use Insert or Delete rows...so the VBA shouldnt use those either.

View 6 Replies View Related

Create List Of Duplicates Based On Occurrences In Another List

May 27, 2014

Eng list.xlsx

The attached file (a copy of my main one) has a list of our engineers, and what stock they carry. The stock parts are the 64, 65, 66... numbers.

I need to create a list from this (as underneath the main table), for all instances where there is a 'Y' in the columns next to each engineer. So if an engineer has 3x pieces of stock, they need to appear in the list 3x times. If they have 1x piece of stock, they appear in the list once.

View 8 Replies View Related

How To Create A List Of Items For Use In A Dropdown List With Data From A Different

Mar 17, 2007

I Attached a sheet for what i'm asking about ,, i sent it before but the sheet showing it more clearly

View 10 Replies View Related

Create New List Based On Data From Another Dynamic List

Jan 4, 2013

I've attached a spreadsheet showing the effect I'm trying to achieve. A list (which changes weekly) contains employee details and length of service. Based on the length of service I need to build a new list grouping the employees based on the service length.

list-test.xlsx‎

View 6 Replies View Related

Create Sub-list From Larger List And Find MIN Value In Another Column?

Feb 6, 2014

I am looking for a formula to search two columns.

1) The first column needs to be search to match a text string.

2) If the text string matchs, I need excel to evaluate the number in the second column and find the MIN value of all numbers associated with the text string.

So:

Joe 50
Jim 12
Joe 10
Rob 25
Jim 8
Rob 99

When searching for "Joe", the function would return 10. When searching for "Jim" the function would return 8. For "Rob", it would return "25".

View 4 Replies View Related

Open Workbook From Local PC

Jan 10, 2007

I have created a form wherein i have created a textbox to enter the excel filename and three different combobox to select the year, month and the day respectively. These are actually the folders on my hard drive and the excel files which i want to open is inside these folders with similar names. I want to search these files for the selected year, month and day from the combobox. The filename will be provided in the textbox. the path for the files is say c:yearmonthday*.xls

View 6 Replies View Related

Vba Hyperlink To Local Worksheet

Mar 7, 2007

I would like to, using VBA, assign a hyperlink to an excel cell that links to another worksheet within the same workbook. I've tried the forums, and combined with a previous post and MS Excel Help File, I've come up with the following attempt:

With Worksheets("Test Destination")
.Hyperlinks.Add Anchor:=.Cells(counter + 4, 5), Address:=strHyper2, _
TextToDisplay:=(#1/1/2007# + counter)

End With

strHyper2 is previously defined: strHyper2 = "[WeatherTester.xls]1!A1"

My spreadsheet file is "WeatherTester.xls", my worksheet is "1", and "A1" is the desired link location for the cursor. Counter is an integer. I get the error "Invalid procedure call or argument". I also tried to enter a hyperlink directly through the formula property, but Excel didn't like the single quotations I had to use within the HYPERLINK function. The hyperlink formula works in the following form: =HYPERLINK("[WeatherTester.xls]1!A1","1 Jan")

View 3 Replies View Related

Copy Cells Into Workbooks Names Mapped From Copy Cell

Aug 20, 2008

1. I have a list of data (Collated Data)
2. For every row in collated data I want to export the cells into a corresponding cell in my predetermined workbook (TAF Form), i.e, Cell C1 on Collated data goes into Cell D3 on TAF Form, cell D1 to cell I3 etc etc
3. Once all cells in one row have been copied into the TAF Form I want that TAF Form to save as "TAF Form & Employee Name" (which would come from cell D3).
4. I then want "TAF Form & Employee Name" to close.
5. I then want the Macro to do the same thing for Row 2, copy the cells, save the form, close the form
6. I want to do this for every row that I have (which varies).

Is this possible? If you have any more questions in terms of what I need, don't hesitate to ask.

View 5 Replies View Related

Create Mailing List From Master List

Apr 5, 2014

I need to create a mailing list for people located in a specific area from a master list.

The address data is not in great shape so I need to check address field 2 and address field 3 in the list to see if the suburb in the location tab appears in either of the two fields.

Desired result appears in column F of the List tab of the attached spreadsheet.

seminar addresses.xlsx‎

View 2 Replies View Related

Create Unique List From List With Duplicates

Nov 28, 2007

I have a list of data which looks like this

Column B

Name
---------
Jones, Bob
Jones, Bob
Jones, Bob
Smith, Mike
Smith, Mike
Smith, Mike
Calai, Dave
Calai, Dave
Calai, Dave
Etc...

What I want to do is take the entire list and create a distinct list that I can use in a named range then use a validation list to have a drop down within a different tab.

View 9 Replies View Related

State And Local Sales Taxes

Feb 21, 2009

Our state carries a 4% sales tax on all items except food and prescriptions.
Our county carries a 3% sales tax on everything.

Attached on my work sheet:
Column "C" determines if an item is either food or non-food.
"G5" is the subtotal of column G
"G4" is the S/tx on "G5" at 3%
"G3" is the S/tx on "G5" at 4%.
"G2" is the gross pay out.

My question is:
I'd like a formula for Cells "G3" and "G4" that can determine which items paid for in column "G" match a "N" or an "NF" in column "C".

If an item in column "G" represents a "F" in column "C", then there should not be anything in cell "G4" If an item in column "G" represents a "NF" in column "C", then there should be a figure in "G3" & "G4".

View 2 Replies View Related







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