I am fairly new to VBA I figured out how to copy a cell value from one workbook to another assuming the location of the destination cell is known.
What i need is for the user to select a single cell in a worksheet and when a command button attached to a macro is clicked data from a fixed location is copied to that cell.
I would really appreciate any suggestions...
I need to open a new workbook and copy cell / named range then come back to original workbook and paste in the location that was selected by the user. In case of range the selected cell is taken as starting cell.
ActiveCell.Copy
instead ofRange("XXX").Copy
? – assyliasActiveCell.Paste
then?! That's assuming the button in on the destination sheet. – assyliasActivecell.Address
and put that into your paste:ThisWorkbook.Worksheets(usname).Range(SavedCellAddress).PasteSpecial
– SeanC