take a look in following:
Sub Test_NextString()
MsgBox NextString("B")
End Sub
Private Function NextString(strX) As String
Dim strC As String
On Error Resume Next
strC = Range(strX & 1).Offset(0, 1).Address(False, False)
If Err = 0 Then
NextString =...
Take look at following:
Sub CutPaste_Data()
Range("A1:C1").Cut Destination:= _
Range("A100").Offset( _
Range("A100").CurrentRegion.Rows.Count, 0)
End Sub
Andro (andrija.vrcan@dalmacijacement.hr)
' Take look at following sample
' In ChartSheet Module insert the following code:
Private Sub Chart_MouseMove( _
ByVal Button As Long, ByVal Shift As Long, _
ByVal x As Long, ByVal y As Long)
' --------------------------------------------------
' My Chart-Name = "Chart6"...
' Take look at following sample
Sub Chart_Sample()
Dim SeriesCollVal, SeriesCollXVal()
Dim ForeSchemeColor, BackSchemeColor, i As Integer
' Fill arrays
ForeSchemeColor = Array(11, 9, 51, 53, 49, 9)
BackSchemeColor = Array(5, 46, 43, 44, 42, 3)
ReDim SeriesCollVal(5)...
Dim my() As String
Sub aaa()
Dim i As Integer
Call myProcedure
For i = LBound(my) To UBound(my) ' 1 to 2
MsgBox my(i)
Next i
' etc ...
End Sub
Sub myProcedure()
ReDim my(1 To 2)
' ect...
my(1) = "blabla"
my(2) = "blabla2"
End Sub
Value in Output Sheet column "A" is key. Programm is loking for identical value in Input Sheet column "A".
If programm find identical value in Input Sheet column "A", it fill Output Sheet columns "B" & "C" by values from Input Sheet columns...
Do you think something like this:
Dim wbIn As Workbook, wbOut As Workbook
Dim wshIn As Worksheet, wshOut As Worksheet
Dim celIn As Range, celOut As Range
Sub TransferData()
Dim RowsCount1 As Long, RowsCount2 As Long
' find and assign rows count for each sheet, e.g
RowsCount1 = 20
RowsCount2 =...
If you want to delete button, try something like this:
Sub Delete_Buttons_1()
Dim sh As Shape
For Each sh In ActiveSheet.Shapes
If Left(sh.Name, 13) = "CommandButton" Then sh.Delete
Next
End Sub
Sub Delete_Buttons_2()
Dim sh As Shape
For Each sh...
1. You can copy validation (Copy-Paste/PasteSpecial(constant xlPasteAll)) but you must be careful with data validate from list (source will refer to range on the worksheet to wich you pasted data).
2. It's possible to paste only values, formats, etc, as follow:
Range("B2:D4").Copy...
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.