SQUIDD
Well-known Member
- Joined
- Jan 2, 2009
- Messages
- 2,138
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi All
Im sure i have done this before, but i must be missing something, probably time for a break.
Im sure i can copy a rance of cells from one workbook to another? Without using range("a2:a50") as example
Im sure i have done this before, but i must be missing something, probably time for a break.
Im sure i can copy a rance of cells from one workbook to another? Without using range("a2:a50") as example
VBA Code:
Sub DB()
Set RNG = Workbooks(MYBOOK).Sheets("APP") 'MYBOOK IS A PUBLIC VAIRABLE ALREADY DEFINED AND IS GOOD
WORD = RNG.DOG_SELECTOR.Value 'THERE IS A VALUE HERE, SO THIS IS FINE
WORD = Mid(WORD, 10, 100)
A = 1
LR=50
Set RNGC = Workbooks(CURRENT_DAY & ".xlsx").Sheets(WORD) 'CURRENT_DAY IS A PUBLIC VAIRABLE ALREADY DEFINED AND IS GOOD
RNGC.Range(Cells(2, A), Cells(LR, A)).Copy 'BUGS OUT HERE, WONT COPY,
End Sub