Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I've been experimenting with code: Sub CopyColumnValues() Dim sh As Worksheet Dim DestSh As Worksheet Dim Last As Long If SheetExists("Master") = True Then MsgBox "The sheet Master already exist" Exit Sub End If Application.ScreenUpdating = False Set DestSh = Worksheets.Add DestSh.Name = "Master" For Each sh In ThisWorkbook.Worksheets If sh.Name < DestSh.Name Then If sh.UsedRange.Count 1 Then Last = Lastcol(DestSh) With sh.Columns("AE:AE") DestSh.Columns(Last + 1).Resize(, _ .Columns.Count).Value = .Value End With End If End If Next Application.ScreenUpdating = True End Sub How can I modify this to copy only cells that contain actual values? Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? | Excel Discussion (Misc queries) | |||
Exclude #N/A values and Return Numeric values to consecutive cells in Single Row | Excel Worksheet Functions | |||
find values in multiple cells and paste row values | Excel Discussion (Misc queries) | |||
There must be a way!!!--set cells' values equal to calculated values in another range | Excel Programming | |||
average values in non-contiguous cells, ignoring 0 values | Excel Worksheet Functions |