Relative Content

Tag Archive for vba

Excel automatically re-opens after closing

When I export MS Project data to Excel I employ a series of statements that open Excel via either: Set xl = GetObject(,”Excel.application”) or
Set xl = CreateObject(,”Excel.application”)

Copy and pasting data from different worksheets and workbooks

I’m trying to take information from one workbook (multiple sheets) and paste them into a new workbook in multiple sheets. Right now, If I run it while I’m in the “RW Crossings” tab, my export for “Master Crossing List” works fine, but no data populate in the “Access Road Crossing List” tab. Vice versa, if I’m in the AR Crossings tab, it populate the Access Road crossing list tab, but not the master crossing list.

Counting the fragments

I have written a series of macros to extract the sentences and words in a novel. The numbers of each word are counted, and for each word, an example sentence containing that word is provided. Sentence variety is optimized, meaning that whenever a word is found, if the previous sentence associated with that word had a frequency (total within the corpus) of n, the new sentence selected for that word will be selected if its frequency in the corpus is less than n.

How to run outlook macro on a scheduled timing?

I have the following scenario. There is a macro in outlook that i have configured as a button under a certain tab. I want to run that macro at a scheduled timing. Can Have a vbscript to invoke a click action on that button to run the macro? If not, can I run the vbs outside of outlook to invoke the macro execution?