Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
for example if i have some data at a cell & another data to another cell
i just wanna to send these data to a bad file |
#2
![]() |
|||
|
|||
![]()
hi,
usually i try to send data to a good file but try this. i have it as a menu item on my pc. Sub mac1SaveRange() 'Macro written by FSt1 4/27/03 'you must select the range to save BEFORE running this macro. Dim cnt As Long Dim cell As Range If Selection.Cells.Count = 1 Then If MsgBox("You have selected only one cell. Continue?????", vbYesNo, "Warning") = vbNo Then Exit Sub End If End If cnt = 0 For Each cell In Selection If Not IsEmpty(cell) Then cnt = cnt + 1 End If Next If cnt = 0 Then If MsgBox("There is no data in the selected range. Continue?!?!?!?!?", vbYesNo, "Warning") = vbNo Then Exit Sub End If End If Selection.Copy Workbooks.Add Range("A1").PasteSpecial xlPasteAll Application.Dialogs(xlDialogSaveAs).Show End Sub regards FST1 " wrote: for example if i have some data at a cell & another data to another cell i just wanna to send these data to a bad file |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Send Excel data to Access through button | Excel Discussion (Misc queries) | |||
Linking the data from one excel to another | Excel Discussion (Misc queries) | |||
How do i copy columns of data in notepad into microsoft excel? | Excel Discussion (Misc queries) | |||
How do i copy columns of data in notepad into microsoft excel? | Excel Discussion (Misc queries) | |||
Save & Save As features in file menu of Excel | Excel Discussion (Misc queries) |