$$Excel-Macros$$ Re: Introduce Yourself !!

2014-01-22 Thread Stuart Baldock
uot; tab of the spreadsheet?? Hoping in anticipation. Regards, Stuart Baldock On Saturday, June 9, 2012 3:21:59 AM UTC+8, Ayush Jain wrote: > Hey all new and current posters, > > Welcome to excel group,one of the largest online community of excel Fans! > > I hope you enjoy your time

$$Excel-Macros$$ How to capture Frame Click Event when click on the actual frame of a "Frame"?

2013-09-17 Thread Stuart Karden
I created a UserForm. The form has several "frames" (for VB folks, VBA "frames" are called "groups" in VB for some reason). I created a sub routine: Private Sub fraMyFrame_Click() DoStuff End Sub If I click *inside* the frame then the click event is triggered and DoStuff runs. In a se

Re: $$Excel-Macros$$ Re: Excel macro help please

2012-12-18 Thread Stuart Wilson
Paul Thanks for your message. So the exact steps I would like are as follows: 1. Data is all in sheet1 in rows. 2. Macro search down column J and look for the word "Apple" or "Pear" and when it finds those words select the cell containing the word plus the previous 4 cells and copy them all. 3

Re: $$Excel-Macros$$ Cannot display properties of ActiveX checkbox that has been added through VBA

2011-10-12 Thread Stuart Redmann
On Oct 12, 2011 Stuart Redmann wrote: > > Hello newsgroup, > > > I tried the following code to create an ActiveX checkbox under Excel: > > > - Create new workbook. > > - Add following code to worksheet 1 > > > Sub test() > >  Me.Shapes.AddOLEObject &quo

$$Excel-Macros$$ Cannot display properties of ActiveX checkbox that has been added through VBA

2011-10-12 Thread Stuart Redmann
Can anybody re-produce this behaviour? Is this a bug? If it is a bug, does it go away under Excel 2003+x, x>0? Thanks in advance, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for tips

$$Excel-Macros$$ Re: How to recast a variant as an array in VBA

2011-09-09 Thread Stuart Redmann
on Sub test() Dim v As Variant v = getArray Dim h() As Double h = v End Sub Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twi

Re: $$Excel-Macros$$ Re: How to add a name column to scatter chart's data label?

2011-08-09 Thread Stuart Redmann
> b8 2 > > > c9 3 > > > d1 5 > > > e8.51 > > > > > > I want to put the values (a, b, c, d, e) from the Person > > > column next to the data point. For exampl

$$Excel-Macros$$ Re: How to add a name column to scatter chart's data label?

2011-08-09 Thread Stuart Redmann
wSeries.MarkerStyle = xlMarkerStyleCircle NewSeries.MarkerBackgroundColor = 1 NewSeries.MarkerForegroundColor = 1 NewSeries.MarkerSize = 5 NewSeries.ApplyDataLabels AutoText:=True, _ LegendKey:=False, _ ShowSeriesName:=Tr

$$Excel-Macros$$ Re: VBA macro runs fine, but freezes if I try to do ANYTHING else while it's running

2011-08-04 Thread Stuart Redmann
ess Escape (you may have to hold it for 2 or 3 seconds). This will pause the execution of the macro so that you can see what it is doing in the debugger. Regards, Stuart -- -- Some important links for excel users: 1.

$$Excel-Macros$$ Re: remove duplicates - is it a good code?

2011-08-03 Thread Stuart Redmann
e same key as the cells a | abb, so that your algorithm will detect a false duplicate. Note that if you compare the contents of the cells as strings, you'll be much slower when the cell actually contains a number that has already been parsed by Excel. If you compare the numbers, you&#x

$$Excel-Macros$$ Re: VB Help needed.

2011-05-16 Thread Stuart Redmann
w. SourceRow = SourceRow + 1 Next Worksheets("Desire format").Range(Cells(4, 1), _ Cells(4 + UBound(TargetArray), 11)).Value = TargetArray End Sub Regards, Stuart --

$$Excel-Macros$$ insert new row if column is missing date....

2011-05-15 Thread Stuart
and so forth. I hope this makes sense to someone Best regards Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our

$$Excel-Macros$$ Re: VB Help needed.

2011-05-13 Thread Stuart Redmann
' instead of the next row. Set TargetCell = TargetCell.Offset(0, 1) TargetCell.Value = SourceCell.Offset(0, 3) End If ' Remember the MISDN that we have seen in this iteration and ' advance the source cell to the next row. LastMISDN = SourceCell.Val

$$Excel-Macros$$ Re: error checking VBA Excel 2003

2011-02-16 Thread Stuart Redmann
has been added to List of Users") > > > 'return to menu page > > Sheets("Menu").Select > > End Sub > > > The problems are as follows:- > > > 1. I have just added the code to check to see if the cancel button is > >

$$Excel-Macros$$ Re: vba excel understanding objects : worksheet

2010-09-24 Thread Stuart Redmann
* Workbooks; /* Global Workbooks collection */ Worksheet* Worksheets; /* Global Worksheets collection */ /* Here comes your code. */ void CopyShNamesFromWKbToWkb2 () { int i; Workbook* wkb; /* = Nouveau_Feuille_Excel_1.xls */ Workbook* wkb2; Worksheet* ws; ws = Worksheets; for

$$Excel-Macros$$ Re: fonts in combobox keeps becoming smaller as it is clicked

2010-08-31 Thread Stuart Redmann
rror descriptions on the net but nobody has a useful answer. Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Jo

$$Excel-Macros$$ Re: I love excel because.......

2010-08-30 Thread Stuart Redmann
el doesn't support dual interfaces. Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http:

$$Excel-Macros$$ Re: Help!?

2010-08-27 Thread Stuart Redmann
terior.Color = LastColor ' Remember the current key for the next iteration of this loop. LastKey = CurrentSelection.Cells(r, 1).Value2 End If Selection.Cells(r, 0).Value2 = LastBlockNumber Next r End Sub Regards, Stuart -- --

$$Excel-Macros$$ Re: Sort excel columns with VBA

2010-08-10 Thread Stuart Redmann
for both SetupOneTime and SortTable into a Code Module, run the SetupOneTime macro through Alt+F8, and everything worked as expected. Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER

$$Excel-Macros$$ Re: automation error

2010-08-06 Thread Stuart Redmann
t; > > name like 7EA78f10 ……and shows a save as dialogue box, when I click on > > > cancel the above error message is displayed and when I save that file, it > > > says “Excel has encountered a problem and need to close and it will start > > > recovering the files agai

Re: $$Excel-Macros$$ Re: Need to sum if data is in another cell

2010-08-05 Thread Stuart Redmann
Hi Nadine, I've sent you an email with a file that hopefully does what you want. Please don't answer by email, since I have a quite selective spam- filter. Please post to this newsgroup instead. Thanks. Stuart Redmann wrote: > > I guess that what you wanted to say is that you wan

$$Excel-Macros$$ Re: Need to sum if data is in another cell

2010-08-04 Thread Stuart Redmann
around this if you (a) use Excel 2010, or (b) use a simple database, for example Access. The later has the benefit that more than one user can enter data. Regards, Stuart -- -- Some important links for excel us

$$Excel-Macros$$ Re: Macro for tracing the changes

2010-08-03 Thread Stuart Redmann
. every type of change i want to trace., Why don't you just turn on the macro recorder? This component pretty much saves a playback of all the actions the user does. The recorded macro can be used to generate a log file. I can't think of any ot

$$Excel-Macros$$ Re: equation editor in excel 2010

2010-08-02 Thread Stuart Redmann
out of luck. A quick scan with Google yielded very little usable information: It seems that automatable formula editing controls are quite rare. Most probably it will be the easiest if you use Latex to typeset your formula

$$Excel-Macros$$ Re: Remove selected cell contents

2010-07-28 Thread Stuart Redmann
-7 $22400.10 If this text is in cell A1, you can enter the following formula into some other cell and retrieve the dollar value from A1. Then you can format the new cell as currency manually (you can do this for lots of cells in one go). =RIGHT(A1,LEN(A1) - FIND(&quo

$$Excel-Macros$$ Re: Reverse of rounding

2010-07-21 Thread Stuart Redmann
uot; values. This may be a bug, although some people rather consider Excel's displaying "0.15" a bug. Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for

$$Excel-Macros$$ Re: Reverse of rounding

2010-07-20 Thread Stuart Redmann
cimal fractions that are no binary fractions cannot be stored as exact values. So what you see is most probably not some kind of "inverse rounding" but just the exact value of the floating point variable. Regards, Stuart -- --

$$Excel-Macros$$ Re: automation error

2010-07-20 Thread Stuart Redmann
les in a separate Excel server? If so, have you enabled macro processing in these servers? Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twit

$$Excel-Macros$$ Re: Excel Programming

2010-07-05 Thread Stuart Redmann
time. We are happy to help you with your problem, but we don't like to spend much time to find our what your problem actually is. Regards, Stuart -- -- Some important links for excel users: 1. Follow us on TWITTE

$$Excel-Macros$$ Re: Macro to shade every other row

2010-07-01 Thread Stuart Redmann
On 30 Jun. Kurt wrote: > > > 1. The comment in this code has as an example, "ShadeAlternateRows > > > Range("A1:D50"), 27, 2", but where in the actual code do you put this > > > information? Stuart Redmann wrote: > > That depends on when th

$$Excel-Macros$$ Re: Macro to shade every other row

2010-06-29 Thread Stuart Redmann
Sub and > End Sub line.) You have to add the line "ShadeAlternateRows Range("A1:D50"), 27, 2" in the Workbook_open method, not the code of ShadeAlternateRows. ShadeAlternateRows is best be placed i

$$Excel-Macros$$ Re: abstract class / interface in VBA

2010-06-14 Thread Stuart Redmann
uot;Implements" keyword (you can even implement multiple interfaces in one module). Note that the implementation of an interface in an all-or-nothing thing: You'll have to implement all procedures of the interface. Regards, Stuart -- -

$$Excel-Macros$$ Re: Form Control Checkboxes

2010-06-11 Thread Stuart Redmann
On 10 Jun., 14:14, Rod Urand wrote: > Stuart, > > Thank you for going to all the trouble to build this. I do have a > problem. I just found out that they are indeed free floating > checkboxes that are not attached to cells. > > Are we just out of luck here? Not at all,

$$Excel-Macros$$ Re: Form Control Checkboxes

2010-06-10 Thread Stuart Redmann
Number - 1 - 26) / 26) Mod 26) + 65) & _ Chr(((ColumnNumber - 1) Mod 26) + 65) ElseIf ColumnNumber > 26 Then ' double letter columns ColumnLetter = Chr(Int((ColumnNumber - 1) / 26) + 64) & _ Chr(((ColumnNumber - 1) Mod

$$Excel-Macros$$ Re: Excel Macro for Dos Prompt

2010-06-07 Thread Stuart Redmann
t figure out how to do so (I'm using Google Groups :-( The following is the code in plain text. You'll have to copy it into a new worksheet. Then you can enter dos commands into the cells A4, B4 and C4, such as cmd /c "copy C:\Temp\foo.txt C:\Temp\bar.tx

$$Excel-Macros$$ Re: Running Macros when Multiple Excels are open

2010-06-02 Thread Stuart Redmann
with regard to your problem. I just guess that you'll have to find out what is going wrong by yourself (which is usually the hardest part of programming). Good luck, Stuart -- -- Some important links for excel us

$$Excel-Macros$$ Re: Excel Group Survey : Please participate.

2010-05-31 Thread Stuart Redmann
sh Jain > Group Manager Dear Mr. Jain, if I don't regularly visit any group that is mentioned in question 8, I still have to select one of them in order to be able to finish the survey. That seems like a bug to me. Regards, Stuart -- --

$$Excel-Macros$$ Re: Running Macros when Multiple Excels are open

2010-05-31 Thread Stuart Redmann
ing the other OutProc Excel instance is negligible in my case). To say something about your problem is quite hard since you have provided very little background information. Are the other instances of Excel in any way related to your insta

$$Excel-Macros$$ Re: eliminating repetitive code in a macro

2010-05-29 Thread Stuart Redmann
ring, _ Criterion2 as String) > Selection.Copy > Sheets("sheet1a").Select > ' This line will be diff for each sheet operated on; e.g., for > sheet1a, sheet1b, sheet2a, sheet2b, sheet3a, sheet3b, sheet4a, sheet4b > > Range("A1").Select &

Re: $$Excel-Macros$$ Is it possible that a sub procedure will do certain steps and at the end it will delete itself

2010-05-19 Thread Stuart Redmann
rash Excel as well. To put it like some sportswear manufacturer: Just try it! Regards, Stuart PS: If you post to newsgroups, you can safely turn off your privacy disclaimer (after all, your posting is _supposed_ to be re

$$Excel-Macros$$ Problem with array properties

2010-05-11 Thread Stuart Redmann
the property MyArray directly? Thanks in advance, Stuart PS: I'm using VB6.0 inside Excel 2003 (don't know about any service packs). -- -- Some important links for excel users: 1. Follow us on TWITTER for

Re: $$Excel-Macros$$ Validating multiple sheets with VBA

2010-05-05 Thread Stuart Redmann
as Excel.Worksheet) 'Column C Validation With p_Worksheet.Range("C9").Validation .Delete : end sub Then you can invoke it by: SetValidation Worksheets ("Sat EEA") SetValidation Worksheets ("Sun EEA") : If you really must use an array of worksh

$$Excel-Macros$$ Styles Lost When Copying/Pasting in Shared Spreadsheet

2009-07-06 Thread Stuart
e to embed some sort of style indicator in the cell text and use a macro to reassign the style, but this is really a last resort. Thanks, Stuart. --~--~-~--~~~---~--~~ -- Some important