- Joined
- Mar 21, 2011
- Messages
- 1,960
- Reaction score
- 0
- Points
- 36
- Excel Version(s)
- O365
I'll try and work it through on my 64bit system later today.
Sub Button1_Click()
Dim ColorValue
'ColorValue = "RGB(" & Worksheets("Options").Range("H11").Value & ")"
ColorValue = "RGB(" & Worksheets("Options").Range("H11").Value & "," & Worksheets("Options").Range("I11").Value & "," & Worksheets("Options").Range("J11").Value & ")"
If ActiveCell = Worksheets("Options").Range("F3") Then
Worksheets("Options").Range("H12").Value = ColorValue
ActiveWorkbook.Colors(1) = ColorValue
End If
End Sub
ActiveWorkbook.Colors(1) = ColorValue
ActiveWorkbook.Colors(1) = RGB (255, 255, 255)
No, neither gave up nor forgot, just had a client that had a production problem.
Anyway, here is the file. I have tested on my 64bit Excel and it seems to work fine, but not sure I have tested everything - I couldn't see how the colours get changed. I have fixed the spin functionality, it should work regardless of where it is now.
One thing I really don't like is that when you click a button (box), you get no feedback. I kept clicking them multiple times as I got nothing, and inserted/deleted multiple records.
ByVal nCmdShow As Long) As Long
Private Sub BtnSave_Click()'SAVE NEW RECORD
Me.BtnSave.BorderStyle = fmBorderStyleNone
Call InsertRecord
Application.Wait Now + TimeSerial(0, 0, 1)
Me.BtnSave.BorderStyle = fmBorderStyleSingle
End Sub
Also don't forget to let me know how I can donate directly to you for all your time (or should I donate to site) - I asked before but not sure if you saw it..several pages back
I thought the button border worked quite well, a second was no big deal. I just removed that line in 32bit excel and I didn't get any errors, but I expect your testing to be better than mine.
I've never been to WalMart, never will (Mind you as I live in the UK that is not saying so much, although Asda is owned by Walmart).
Public Declare Function SetLayeredWindowAttributes Lib "user32.dll" ( _
ByVal hWnd As Long, _
ByVal crKey As Long, _
ByVal bAlpha As Byte, _
ByVal dwFlags As Long) As Long
Public hMenu As LongPtr