Hi,
I have problem referencing a cell from another worksheet.
When I reference a cell by using:
ActiveCell.FormulaR1C1 = "=costadjust('Video DVD _& Playstation'!R[" & -lastrow_dvd_paste2 & "]C[1])"
The variable lastrow_dvd_paste2 works fine if its a postive number but when I put the...
Hi,
I have a report that is connected to an external data source. One of the columns is a function that converts a number stored in the database to a recognised date format.
So what I am looking for is a method in VBA to see the range of the data after the refresh, and autofill the function...
Hi,
The problem I have is that I have about 20 reports scheduled to run on certain days. I have used VBA to refresh the data, make a copy and save the master document. For most of the reports when run in scheduler works fine. However some of the reports does not finish refreshing before it...
Thanks Geoff, I have already got similar if statement for the path of the document (so it only works in the master directory) but your idea is good because it means that the macro only works on my computer and only I need to know how to break the macro.
Good job!!!
The only problem with the input box method is that the reports are run on a scheduler and needs to be an automatic process.
The shift key method seems to work on my own computer however when I try to do it on the document via PC anywhere, it doesn't work. I don't know if its not working due...
Thanks for that, it helps with security level problem.
Is there a way to stop the macro by a keystroke? because i still have the problem of the report looping to a close. (ie. if someone wants to modify the master document without the macro running)
Hi,
I have a number of reports that are scheduled to run at various parts of the week/month. At the moment I have written a macro that resides in workbook_open. The macro saves the master documnent, makes a copy in another directory and creates a log of the process before shutting down. The...
Hi,
I have been give a MS Access db to alter at work however the original author has left along with the password for the VBA modules.
Is there anyway to unlock the password, I have tried various things on the net however they only seem to be for user name and passowrds or VBA macros in...
Hi,
I have a document that has a few hundred different tables in it, however some of the tables are not formatted correctly. I am trying to find a bit of code that selects all the tables then autofits the columns.
Please can anyone help?
Cheers
Leo
Sorry, I didn't make myself clear.
When the user opens the template, a summary box is displayed where the title, author etc is shown. The user will enter something for the title.
I then want the title of the document to be displayed in the saveas dialog box (the documnet is currently...
Hi,
I am trying to write a macro that inserts the title of the word document into the save as dialog box.
I am going to use: ActiveDocument.saveas (???????)
Dialogs(wdDialogFileSaveAs).Show
to insert a value into the dialog box, however I need some code to call the title...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.