ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   3 Questions - No Answers - Help me please (https://www.excelbanter.com/excel-programming/341118-3-questions-no-answers-help-me-please.html)

Adam Harding

3 Questions - No Answers - Help me please
 
1) I need to open up some source workbook on opening my main form but would
like it hidden if possible, can't even open it yet!
2) I keep getting the following message on saving "Excel cannot complete
this task with available resources. Choose less data or close other
applications" on clicking OK i get "Unable to save external link values" I
don't want to save external link values how can i stop it doing this at all.
It still saves properly regardless so i don't see the point.
3) On close I need to sort an area of 7 columns by 500 lines by column A
with the sort regarding text as numbers, can i get that to work?

Cheers Adam, In gratitude

Peter[_55_]

3 Questions - No Answers - Help me please
 
Adam,

Answer to question number 3:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Columns("A:G").Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess,
_
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A1").Select
End Sub

Regards,
Peter
"Adam Harding" schreef in bericht
...
1) I need to open up some source workbook on opening my main form but
would
like it hidden if possible, can't even open it yet!
2) I keep getting the following message on saving "Excel cannot complete
this task with available resources. Choose less data or close other
applications" on clicking OK i get "Unable to save external link values" I
don't want to save external link values how can i stop it doing this at
all.
It still saves properly regardless so i don't see the point.
3) On close I need to sort an area of 7 columns by 500 lines by column A
with the sort regarding text as numbers, can i get that to work?

Cheers Adam, In gratitude





All times are GMT +1. The time now is 06:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com