Read Only Access In Excel?

Jan 16, 2012

I have an excel file which is shared by multiple users. I would like to make one person to have read,write or edit permissions and rest of the users to have only read only permissions.

View 1 Replies


ADVERTISEMENT

File May Be Read-Only, Or You May Be Trying To Access A Read-Only Location

Jan 4, 2007

I'm trying to open a file on a network drive...but I'm getting the following error message when it opens: "This file may be read-only, or you may be trying to access a read-only location. Or the server the document is stored on may not be responding." Now, the file itself has no rights restrictions and is not read only. It doesn't appear to be locked.

Now, there are other Excel files in the same directory which I could open fine; however, the Excel documents having the above problem all have a little black icon "appears to be a padlock" (image attached) at the bottom left hand side of the Excel file icon. I tried the following:

- Renaming
- Converting to a different file format (didn't work, it won't let me)
- Opening in notepad...etc doesn't work.

This file is dated back in 2004...do you think it's corrupt? Is there anything i can do to open or recover this?

View 2 Replies View Related

Direct Read Of Access Table

Jul 11, 2008

I have a RecordSet that has been built and accessed sequentially with no problems. I now want to access it directly, via it's Primary Key.

I know I can access it as follows :

With MyTable
.MoveFirst
Do Until .EOF
If ![PrimaryKey] = Work_Key Then
MyData = ![Data_To_Extract]
Exit Do
End If
.MoveNext
Loop
End With
As a MainFrame Programmer, I would expect to be able to access that record directly, via it's Primary Key, something like :

Read MyTable Key = Work_Key
MyData = ![Data_To_Extract]
Am I thinking too much like a Mainframe Programmer (that *is* my trade, it's difficult to adjust sometimes !)? Is the With - Do/Loop method the way to go, or is there a Direct Read method I should be using?

View 9 Replies View Related

Macro To Access And Read Data From HDF Files?

Feb 16, 2013

Does Excel can be used to read data from HDF files? Specifically, what I would like to do is this: I have an Excel worksheet with some latitude data on Column A and longitude data on Column B. I would like to open a HDF file, which contains many sets of data, out of which 2 are the latitude/longitude data, and a third set contains the data that I want to extract. I will use the latitude data in Column A to search through the first set in the HDF, which will return me the row number. I will then use the longitude data in Column B to search through the second set to return the column number. With these row and column numbers, I will then extract the corresponding data in the third set, and write it to Column C in the worksheet.

how to write a simple VBA code for it? Or point me to some relevant information?

View 1 Replies View Related

Access/read Data From A Hidden WorkSheet

May 19, 2006

I'm trying to access/read data from a hidden WorkSheet in Excel 2003 using:

Application.Worksheets("Hidden Sheet").Activate
With ActiveSheet
**** Data ****
End With

The accessed **** Data **** refers to another ('unhidden') WorkSheet. How can I read the data without making the WorkSheet visible to the User?

View 4 Replies View Related

Only Execute Code On A Write-access Basis, Not Read-only

Jul 6, 2009

I have recently used a before_close event on this workbook to save a backup of the open file to another location on my system. This works fine but I was wondering if there was some more code I could add to only execute this event on a write access basis.

The file I use can be viewed by anyone on the network as read-only and only certain users with a password can edit/update with a write access password.

The backup event is use executes every time the document is closed be it read-only or write-access.

Ideally I would like to add some code to only execute this backup if the file is opened on a write-access basis.

View 3 Replies View Related

How To Read Tag From HTML In Excel

Apr 26, 2012

is it possible in Excel to read value from url every 5 mins.

this html url has a time which is updated every 5 mins, I want excel to read that time from that url every 7 or so mins. so after that I can write another code if time didn't change it will notifity me or do whatever I need to do after that.

View 2 Replies View Related

VBS To Open Excel File As Read Only?

Jan 31, 2014

I have a excel file that opens and will automatically run a bunch of tasks if a certain user opens it. This user is only used to automatically run this excel file, other users need to open the file occasionally to edit emails address, add clients etc stuff like that, that the automation part of it works off.

Currently I have this user running the file every hour using Win7 Task Scheduler. This is working well, except for the time when another user is editing the file on the hour and of course the Automated user gets the "this file is open blah blah blah, open as read only, cancel etc" popup, this stalls everything, and if I dont notice it, it could sit like this for days.

The file runs in Read Only fine, so... Basically my question is, how to open this file as "Read Only" using Task Scheduler? As if it just ran as Read Only all the time then it wouldnt matter what other users were editing at any given time.

One of my ideas was to have Task Scheduler run a VBS script instead of running the Excel file directly, and having the VBS script simply load the Excel as Read Only.

View 5 Replies View Related

Formula To Read Two By Two Excel Matrix?

Mar 13, 2014

I was wondering if it is possible to write a formula so that the below table can be read based on the input (in this case start month and cut-off month) and return the value from the table. I have also attached the excel with the data and some examples.

Start Month >>>>
AprMaiJunJulAugSepOktNovDezJanFebMrz
"Cut-off Month

[Code]....

View 3 Replies View Related

Excel IE Automation - Read Web Table

Sep 24, 2010

I am trying to analyze a web page and would like to search through the contents of a web table. I need to extract text error messages which can be located at various unpredictable rows / columns in the web table.

How can I do this?

View 9 Replies View Related

Excel 2010 :: Read CSV Files Without Opening?

Oct 23, 2012

Is there a way of reading .csv files and copying the data from say Sheet1 without actually opening the file itself? I have .csv's that will take some time to open due to size so dont really want to open them, but want to copy the data from all of them within a specific folder.

I am running windows 7 x64 and office 2010 x64.

View 5 Replies View Related

Recovering Changes In A Read-only Document When Excel Crashes

Aug 2, 2009

When an Excel document crashes, I get the option to recover the document the next time I open Excel. However, if it is a read-only file, I don't get this option.

Is there any way around this? I usually work in read-only documents, saving my changes to new documents. If the read-only file I'm working in crashes.

View 6 Replies View Related

Read Specific Cell From Many Excel Files Automatically?

Mar 11, 2014

Is there anyway to read a specific cell from many excel files automatically and add them to a new workbook?

I tried to link that specific cell to a new workbook manually but now I have a problem: If I change the name of any workbook that is linked to the new workbook, Excel can't update the new file name

View 7 Replies View Related

To Read Many Text Files And Write It In The Excel File

Dec 11, 2009

I need help for reading data from text files and saving it under different columns in the excel file using vba macro.

For example: I have many text files in the following format ....

View 9 Replies View Related

Password Protected Excel File - Can Only Open As Read Only

May 31, 2013

I've got a spreadsheet that has password protection before you can "modify" it. All of a sudden today, when I open the spreadsheet and enter the correct password, it still opens but only as Read Only.

View 3 Replies View Related

Excel Or Access?

May 14, 2007

I need a front worksheet with either buttons or tick boxes that will list different options for a machine

Once a tick or push button is activated a hidden block of text related to that specific tick box needs to be selected and placed onto a final print out sheet (allocation)

when futher boxes have been ticked I would like all the information blocks to build up on the final print out sheet.

View 10 Replies View Related

Access Vs Excel As A DB

Dec 18, 2007

There are many examples and aspects to compare these 2 products but I just want to point one little difference which is quite crucial and interesting.

Generally if you use small amount of data - 1 Worksheet / 5000 rows / 20 columns you can use Excel without bothering about the execution time, queries and work fast and convenient with it.

The point on Excel is that in 1 Column/Row you can differently Format the data(cells). For example - format as Number or Hour the cells in Column B depending on the data in other columns. That saves you from making 2 Columns - one for Numbers and another one for Hours. This helps you to save 1 of the columns when the data structure in other column is the same.

In Access (and generally all SQL DBs) this is not possible.

View 9 Replies View Related

Excel Command Line Switch For (Read Only) Shortcut Not Working

Jul 31, 2014

I've recently created a macro which takes a .csv file and scrubs the data and dresses it up for a report. I've finally got it running without any problems and have added it individually to 5 different user accounts on my network as an add-in, but need a way to share it across a computer network without allowing others to edit the file.

The report is generated multiple times a day by the different users, none of whom are very computer literate (not that I am much better, myself), and the macro over-writes the old file each time. I've read that it's possible to simply create a shortcut to the file that automatically opens the spreadsheet in read-only format, which would be perfect for what I'm trying to do, but I haven't been able to get it to work so far.

My current shortcut pathway is similar to this:

"C:Program FilesMicrosoft OfficeOffice15EXCEL.EXE" /R "C:UsersBenDocumentsOT Master.xlsx"

On my computer at work (Windows 7) the shortcut simply opens the spreadsheet so that anyone can edit it, instead of as a read-only file. On my computer at home (I'm trying to experiment) (windows 8.1) it won't even let me save the shortcut, saying I need to provide administrator permission & then cutting to a window that says "access denied".

I won't have the pathway for the actual file I'm trying to create a shortcut for until tomorrow when I get back to work, but I've formatted it essentially the same, directing to the excel.exe file, running the switch "/R", and then directing it to the actual file location.

The ultimate goal is to have multiple people be able to view the file without locking out those who need to update it.

View 1 Replies View Related

Excel File To Automatically Read Date & Pre-populate From 1st Field

Aug 13, 2014

i have a file that needs to have daily postings to it, I would like for it to automatically generate today's date and then if you change figure 1, it carries over to figure 2.

View 3 Replies View Related

Excel 2003 :: Macro To Copy And Read Cells Based On Name

Feb 5, 2012

I have three workbooks that contain various types of information. I have an Overtime workbook that lists employees and calculates the straight time and overtime worked for the day. This is the main log that information will be pulled from.

I need writing a macro that will copy over information to an Absent Log workbook and a Production Model workbook.

The Absent Log workbook:

This workbook contains worksheets from each month. I need excel to do a lookup of the name in the Overtime workbook and copy the information from the "OT" column but if that column is empty I need it to pull the information from the "Personal DT" column.

The Production Model workbook:

I need this workbook to automatically pull the total straight hours and overtime hours to the production model for the correct day. This will also pull from multiple sheets.

I am going to be writing this in Excel 2010 but it will be primarily used in Excel 2003.

I uploaded the workbooks to filefactory.

OT Workbook: [URL] ......

Absent "Log" workbook: [URL] .....

Production Model: [URL] .....

View 1 Replies View Related

Access Another Program Via Excel VBA?

May 22, 2012

I am trying to access another program via Excel VBA. The idea is that, we fill out out time and attendance sheets for work on excel workbooks. But, we have to go into a terminal program to enter this information so it can be uploaded to whereever it goes.

I am able to get the Shell command to work. But, it will be riddled with sendkeys commands and application.wait. I am sure that this is not the best way to program something like this. I believe I read that for this to work that it has to be COM compliant. I don't know. The program is a Java based terminal program.

This works for me

Code:
ShellExecute 1, "Open", "C:UsersPublic******lib***_core.jar"
But this does not

Code:
CreateObject "C:UsersPublic******lib***_core.jar"
It gives me a Run-time error 429, ActiveX component can't create object.

View 1 Replies View Related

Plug Excel Value Into Access?

Dec 16, 2013

I'm running an Excel program such that the user inputs a variable. The program opens an Access database which is linked to the Excel sheet where the variable is stored. Access then runs macros containing queries based on that variable. I've noticed that the link to Excel is slowing performance and I'd like to speed things up, some code that would allow me to plug the variable into Access for use in the query without having to link to the Excel workbook.

This is a piece of the code I use in Excel which runs the Access macro:

Code:
For iter = 1 To bottom_row - 1
If IsEmpty(MyMacro(iter)) = False Then
Set AccessApp = CreateObject("Access.Application")
With AccessApp

[Code].....

Everything works well as-is; it's just slower than I'd like. Due to other constraints I'd rather not go into here, I really am forced to use this kind of Excel/Access interaction. In other words, the user must use Excel to run an Access query.

View 5 Replies View Related

Import Access To Excel?

Feb 17, 2014

I am trying to import database records into Excel, but i keep getting an error "run-time error 424" on the code below.

It is probably something simple, but i havent tried importing from Access to Excel before.

The code below should clear the data from "Existing" and then copy the data from test.mdb into the same sheet.

The error occurs when opening "Data Source"

Code:
Private Sub Workbook_Open()
Dim cnn As New ADODB.Connection
Dim rst As New ADODB.Recordset
Dim dbCommand As New ADODB.Command
RowCount = Worksheets("Existing").Range("A" & Rows.Count).End(xlUp).Row
Worksheets("Existing").Range("A2:V" & RowCount).ClearContents

[code]....

View 9 Replies View Related

Open An Access DB From Excel

Jun 29, 2007

I am trying to open an access database from excel by clicking a button. I have assigned the following script and modified it for my own use as according to the microsoft kb.


Private Sub CommandButton2_Click()
'Opens Microsoft Access and the file nwind.mdb
Shell ("c:Program FilesMicrosoft OfficeOFFICE11MSACCESS.exe T:TSD - UKProjectsSteve's ProjectsT3FCRs.mdb")
'Initiates a DDE channel to Microsoft Access
Chan = DDEInitiate("MSACCESS", "system")
'Activates Microsoft Access
Application.ActivateMicrosoftApp xlMicrosoftAccess
'Runs the macro "Sample AutoExec" from the NWIND.MDB file
Application.DDEExecute Chan, "ImportData"...........

View 9 Replies View Related

Import From Access Using Excel VBA

Dec 17, 2008

I use Excel 2003 and am trying to import information from an access database. The recordset I am looking for is based on Cell B3 on a worksheet named Import.

Is there a way that Excel VBA Can do this?

The recordset contains text in the standard of Memos, Will I be able to import the entire Memo?

View 9 Replies View Related

Read And Import Multiple Text Files Into Excel And Parse Data?

Mar 27, 2014

I am trying to determine a way to quickly import data from text files into Excel and place data in suitable columns (under correct headings). I am thinking I could be asked which file to read and import doing them 1 by 1, or if there is an automated way to cycle through all the files that would be more efficient (filenames are variable).

From the text files I have attached I can tell the column headers and what data should go under each. Not sure how you would describe the delimiting on these files? Are these files in a format that VBA could be used to reduce manual copy and paste approach? I have about 300 of these files I want to extract the data from.

Note: the attached files are from a public access website.

WELLS0214.TXT WELLS0106.TXT

View 4 Replies View Related

Importing Access Data Into Excel Tab?

Jun 17, 2014

I have an acess database where I export the data into a blank excel workbook and then copy and paste the data into a report file. My goal is to automate this process and my first thought was to add a button into the access database and have it export to an excel template, but using/editing the access database is not an option, so, that leaves me thinking about automating this process from excel. Is it possible to export data from an access database into cell A1 of a tab?

View 5 Replies View Related

Saving Data From Excel To Access Through VBA

Mar 12, 2014

I have created one Info path solution to gather information from different locations to one hidden Access database. And in last month or two I already have more than 30 000 entries in database. On other side I have created 2 excel workbooks, one for purpose of report that has all connection done through VBA, user just opens it, clicks button and gets report and one workbook that is for other set of users so they can change 2 specific columns of data, everything else is locked. When one department fills value it should fill based on gathered information, and clicks save that cell or cells are being locked.

At first I did on worksheet change event, when user changes a cell (enters information) it triggers worksheet_change event and saves that value in database and colours cell green. But, then users start complaining that when they use copy paste or the use fill paste option (just pull value from one cell to others) it does not save value. Ok ... that is because worksheet_change event does not trigger in situation when copy paste in any form occurs.

So how to solve it ... when pulling data in excel I pull identical table (data) in other hidden worksheet. When they change what they need to change, they click button "save to database" i have created and there is a macro that makes other sheet visible, goes through the records and saves where cell value in table that is being entered is different then same cell in hidden table.

Problem is that sometimes my code works without a problem and sometimes they get an error. I cannot figure out when. When a lot of users use that excel file, for some users it is a read only file, and as I presume that is ok, because macro works in any case and data are stores in database so excel file itself does not have to be saved.

Here is code.

[Code] .....

View 1 Replies View Related

Linking Info From Access Into Excel

Dec 1, 2011

I know that I can import data from access into excel. What I am looking for is a way to have the data linked so that any time that a change is made in access, that change will be reflected on my Excel worksheet.

View 1 Replies View Related

Exporting Excel File To Access Via ADO?

Feb 14, 2012

I have about 180 Excel files (each one with 51 columns and around 30,000 rows) that need to be exported to an Access table.I'm using the routine below which is extremely time-consuming. I'm sure there is a better way to export an excel file to an Access table.

Sub ExportHistData()
Dim rst As Object
Dim cn As Object
Dim i As Long
Dim lstCell As Long
Application.ScreenUpdating = False
lstCell = [a65536].End(xlUp).Row
If lstCell = 1 Then Exit Sub

[code].....

View 4 Replies View Related







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