So I am having a very difficult time finding a solution to this problem. Is there any way that I can inherit macros from another project. For example, for the post build I would like to use the macro for the RemoteMachine address that is located in one project in all the other projects. I was thinking something like (ProjectContaining...
Hi,
I am working With Microsoft Word VBA,macros,.net
My question : Is there way to get sub-topic and master-topic that precedes a selected body text ?
Here is an example:
Master topic (level 1)
sub-topic 1 (level 2)
body text a
body text b body text c
sub-topic 2 (level 2)
body text d
body text e
Other MISC topics (level 2) bo...
i'm currently looking through some source code i found on the net, which makes use of preprocessor macros in a way i don't understand. it implements the quad-edge data-structure.
hope, someone can clear things for me!
typedef int edge_ref;
typedef struct {
edge_ref next[4];
void *data[4];
unsigned mark;
} edge_struct;
#def...
The macro 'propdp' creates a dependency property like this:
public int MyProperty
{
get { return (int)GetValue(MyPropertyProperty); }
set { SetValue(MyPropertyProperty, value); }
}
// Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
public static readonly Dependen...
i am connecting to a mysql table through vba in excel and i am updating it:
Set cn = New ADODB.Connection
cn.Open "DRIVER={MySQL ODBC 5.1 Driver};" & _
"SERVER=localhost;" & _
"DATABASE=employees;" & _
"USER=root;" & _
"PASSWORD=M1llen;" & _
"Option=3"
'lets get the batch info
'
' open a recordset
Set rs = New ADODB....
For a C# project, I make use of several Visual Basic macros in Visual Studio. I was just considering that these would be of use to other developers that work on the C# project. The macros so far include removing trailing whitespace on save, organizing using directives and removing unnecessary ones, and an override for Ctrl-M Ctrl-O tha...
I am trying to create a Macro that either runs on close or on save to backup the file to a different location.
At the moment the Macro I have used is:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
'Saves the current file to a backup folder and the...
R5RS gives proposed macro definitions for library forms of syntax:
http://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-10.html#%_sec_7.3
Which also defines letrec, in a very complicated way, certainly not how I would define it, I would simply use:
(define-syntax letrec2
(syntax-rules ()
((letrec2 ((name val) ...) body bod...
i am getting some data:
rs.Filter = "datapath='" + dpath + "' and analystname='" + aname + "' and reportname='" + rname + "' and batchstate='" + bstate + "'"
If Not rs.EOF Then
MsgBox rs.Fields("rowid")
End If
if the rs.filter returns multiple records, how do i get rs.fields("rowid") to give me multiple rowid values?
...
i have some comboboxes and some textboxes on a form
i would like to clear all of them with one line of code. is that possible?
something like all_controls.text=""
...
I'm trying (as a self-learning exercise) to create a Clojure macro that will generate code to apply a function to a sequence of integers and sum the result, e.g.
f(0) + f(1) + f(2) + f(3)
This is my attempt:
(defmacro testsum [func n]
`(fn [x#] (+ ~@( map (fn [i] `(~func x#)) (range n)))))
However something seems to go wrong wit...
Hi
We have a simple macro that connects Access and Excel (Office 2007 on Windows) with some forms and we are trying to create the iWork version, but I cant find how to create a macro or something, does anyone knows some manual or links to do this?
Im using iWork 09 on Snow Leopard.
Thanks!
...
i am clicking a button on a form in access:
Private Sub Command29_Click()
some_variable = 2
stDocName = "test"
DoCmd.OpenQuery stDocName
End Sub
my query looks like this:
SELECT *
FROM [some_table]
WHERE [Occurrence Number]=some_variable;
is this possible to do?
...
i am passing the textbox1.text values into a query and sometimes into a string
sometimes i say this:
dim combor1 as string
combor1 = comboReason1.Text
how do i know when i should put combor1=comboreason1.value ??
also why do i need to set focus for a control to reference its property? that doesn't make sense to me
also when i set ...
i have a combobox on a form
i want the text of the combobox to be passed into a query.
my query is:
select..from..where something=[Forms]![Enter Data]![comboCup]
the form name is enter data and the combobox name is combocup. should i do:
[Forms]![Enter Data]![comboCup]![text]
or
[Forms]![Enter Data]![comboCup]![value]
??
...
i need to know if any text has been entered into a combobox
if i do:
If comboReason1.Value <> "" Then
it gives me an error, and if i do:
If comboReason1.Value <> Null then
this doesn't work.
how do i check whether text has been entered into the combobox?
...
i would like the user to think he's using a regular winform, but in the backend i want to have access handle the DB stuff.
is it possible to just use the access form and have everything else disappear in the background? can we make an exe out of the form?
what is MDE?
...
Hey I am a university student (math major), but programming since I was little (read: 14).
I am starting a new programming job tomorrow at a very big company.
However I just found out that I might be just working with access for a couple of weeks (macros and whatnot).
Can someone just give me a general rundown on how to create and u...
I have to generate an email at end of the day (daily-status) which is templated. I have add tasks to different list and on the top, I have to have count of these tasks such as:
X Tasks: 2 of 5
Y Tasks: 3 of 5
X Tasks:
X Task 1
X Task 2
Y Tasks:
Y Task 1
Y Task 2
Y Task 3
I don't want write co...
I'm using VS2005 on Vista. I'm using some macros, but now they have suddenly stopped working. No error messages of any kind. I am not aware of having done anything that could trigger this.
I have made sure that "Allow macros to run" is checked in Tools->Options->Addin/Macro Security.
I have tried running the macros from a keyboard shor...