Re: $$Excel-Macros$$ Links

2017-05-24 Thread KAUSHIK SAVLA
Hi Paul

You are correct,  I don't want to break links. Not possible to send
workbook as it contains sensitive confidential information.

Just suppose there is a worksheet named A in workbook.  It is linked to
external workbook named say X,  Y and it is also linked to worksheets in
workbook say name B,  C,  D,  E in different cells.

What I want is in new workbook it should display
Worksheet A -  Linked from external workbook X,  Y and internal worksheets
B, C,  D,  E.

This process repeat for all worksheets within a workbook.

Regards,
Kaushik Savla
8373916768

On May 25, 2017 00:53, "Paul Schreiner"  wrote:

> It sounds like you're not wanting to REMOVE the links,
> but basically generate a list of worksheets and the name of the external
> workbooks linked to those sheets.
>
> That doesn't sound difficult.
>
> But the error you're suggesting doesn't make sense because you're not
> "pasting" anything (with the macro I suggested).
>
> It would take me at least an hour to TRY to create a file set that MIGHT
> duplicate your structure.
> Is it at all possible for you to send me the workbook directly (
> schreiner_p...@att.net)?
>
> If not, can you send me the macro you're using that is causing the
> problems?
> *Paul*
> -
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you
> can,In all the places you can,At all the times you can,To all the people
> you can,As long as ever you can.” - John Wesley*
> -
>
>
> On Wednesday, May 24, 2017 3:07 PM, KAUSHIK SAVLA 
> wrote:
>
>
> Hi Paul,
>
> What I am looking for is below.
>
> 1. I have a workbook with 100 worksheets
> 2. Each worksheet is linked to several external Workbooks and several
> tabs/worksheets within workbook.
> 3. What I want to do is first list all name of tabs sequentially in a new
> workbook and against each worksheet name mention the unique source with
> name say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e,
> f Worksheets.
> This I want to do for all 100 worksheets.
>
> Hope this helps.
>
> Regards,
> Kaushik
>
> On May 25, 2017 00:23, "KAUSHIK SAVLA"  wrote:
>
> Hi Paul,
>
> What I am looking for is below.
>
> 1. I have a workbook with 100 worksheets
> 2. Each worksheet is linked to several external Workbooks and several
> table within workbook.
> 3. What I want to do is first list all name of tabs sequentially in a new
> workbook and against each worksheet name mention the unique source with
> name say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e,
> f Worksheets.
> This I want to do for all 100 worksheets.
>
> Hope this helps.
>
> Regards,
> Kaushik
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
> https://www.facebook.com/
> discussexcel 
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE  : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/excel-macros/ lYmOGDBlWFU/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to 
> excel-macros+unsubscribe@
> googlegroups.com .
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at https://groups.google.com/ group/excel-macros
> .
> For more options, visit https://groups.google.com/d/ optout
> .
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted mater

Re: $$Excel-Macros$$ Links

2017-05-24 Thread Paul Schreiner
It sounds like you're not wanting to REMOVE the links,but basically generate a 
list of worksheets and the name of the external workbooks linked to those 
sheets.
That doesn't sound difficult.
But the error you're suggesting doesn't make sense because you're not "pasting" 
anything (with the macro I suggested).
It would take me at least an hour to TRY to create a file set that MIGHT 
duplicate your structure. Is it at all possible for you to send me the workbook 
directly (schreiner_p...@att.net)?
If not, can you send me the macro you're using that is causing the 
problems?Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
- 

On Wednesday, May 24, 2017 3:07 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several 
tabs/worksheets within workbook.
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and against each worksheet name mention the unique source with name 
say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e, f 
Worksheets.
This I want to do for all 100 worksheets.

Hope this helps.

Regards,
Kaushik
On May 25, 2017 00:23, "KAUSHIK SAVLA"  wrote:

Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several table 
within workbook.
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and against each worksheet name mention the unique source with name 
say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e, f 
Worksheets.
This I want to do for all 100 worksheets.

Hope this helps.

Regards,
Kaushik

--
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/ discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
---
You received this message because you are subscribed to a topic in the Google 
Groups "MS EXCEL AND VBA MACROS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/ 
topic/excel-macros/ lYmOGDBlWFU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
excel-macros+unsubscribe@ googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/ group/excel-macros.
For more options, visit https://groups.google.com/d/ optout.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


   

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a ques

Re: $$Excel-Macros$$ Links

2017-05-24 Thread KAUSHIK SAVLA
Hi Paul,

What I am looking for is below.

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several
tabs/worksheets within workbook.
3. What I want to do is first list all name of tabs sequentially in a new
workbook and against each worksheet name mention the unique source with
name say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e,
f Worksheets.
This I want to do for all 100 worksheets.

Hope this helps.

Regards,
Kaushik

On May 25, 2017 00:23, "KAUSHIK SAVLA"  wrote:

> Hi Paul,
>
> What I am looking for is below.
>
> 1. I have a workbook with 100 worksheets
> 2. Each worksheet is linked to several external Workbooks and several
> table within workbook.
> 3. What I want to do is first list all name of tabs sequentially in a new
> workbook and against each worksheet name mention the unique source with
> name say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e,
> f Worksheets.
> This I want to do for all 100 worksheets.
>
> Hope this helps.
>
> Regards,
> Kaushik
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE  : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/excel-macros/lYmOGDBlWFU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at https://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Links

2017-05-24 Thread KAUSHIK SAVLA
Hi Paul, 

What I am looking for is below. 

1. I have a workbook with 100 worksheets
2. Each worksheet is linked to several external Workbooks and several table 
within workbook. 
3. What I want to do is first list all name of tabs sequentially in a new 
workbook and against each worksheet name mention the unique source with name 
say linked to external ABC,  XYZ,  files and linked to a, b, c, d, e, f 
Worksheets. 
This I want to do for all 100 worksheets. 

Hope this helps. 

Regards, 
Kaushik

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ Re: Need help in Vba Macro

2017-05-24 Thread KAUSHIK SAVLA
Hi Paul,

I am getting error message mentioning the cells cannot be pasted as the 
size and shape is not same.

Regards,
Kaushik

On Tuesday, May 23, 2017 at 11:32:58 PM UTC+5:30, KAUSHIK SAVLA wrote:
>
> Hi Team,
>
> I am trying to do below in an excel. You can assume there are 60 
> worksheets minimum in a workbook.
>
> 1. In opened excel file. Which has links from several files
> 2. All cells of the workbook I am doing paste special values
> 3. Then to come at the first cell in all worksheets (i.e. Cell A1)
> 4. Then to come at first tab, first cell, Save the workbook here (so 
> whenever excel opens the person will see first sheet, first cell)
> 5. Close the workbook
>
> I am having below vba code. It is taking forever to run (minimum 15-20 
> minutes). Can anyone please help in boosting speed so could be run in 
> fraction of seconds.
>
>
> Sub Select_All_Sheets()
> Dim sht As Worksheet
> Dim SelectMe() As String
> Dim s As Integer
> For Each sht In Worksheets
> s = s + 1
> ReDim Preserve SelectMe(1 To s) As String
> SelectMe(s) = sht.Name
> Sheets(SelectMe).Select
> Cells.Select
> Selection.Copy
> Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, 
> SkipBlanks _
> :=False, Transpose:=False
> Application.CutCopyMode = False
> Application.Goto Range(Cells(ActiveWindow.SplitRow + 1, 
> ActiveWindow.SplitColumn + 1).Address)
> ActiveWorkbook.Save
> Next
> End Sub
>
> Regards,
> Kaushik Savla
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


Re: $$Excel-Macros$$ Need help in Vba Macro

2017-05-24 Thread Paul Schreiner
What isn't working?What does your code look like?
I put random numbers in 100,000 cells in  Book1.xlsbThen, in Book2, I put 
100,000 cells with links to the corresponding cell in Book1.
I then created a macro module with:Option ExplicitSub RemoveLinks()
    Dim aLinks, inx
    aLinks = ActiveWorkbook.LinkSources(xlExcelLinks)
    
    If Not IsEmpty(aLinks) Then
    For inx = 1 To UBound(aLinks)
    ActiveWorkbook.BreakLink _
    Name:=aLinks(inx), _
    Type:=xlLinkTypeExcelLinks
    Next inx
    End If
End Sub

Ran RemoveLinks and it replaced all 100,000 cells with the contents immediately.
what does your code look like, and what do you mean that it "the code is not 
working"?
Is it not removing the links?is it giving you an error? 
Paul-
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
- 

On Wednesday, May 24, 2017 1:42 AM, KAUSHIK SAVLA  
wrote:
 

 Hi Paul,
The code is not working.
Can you please provide full code starting with Sub...till End sub
Regards,kaushik Savla
On Wed, May 24, 2017 at 12:42 AM, Paul Schreiner  wrote:

If you also want to get rid of the "internal" links and formulas, you can make 
use of the fact that, for a given cell, the VALUE of the cell is what is 
displayed, while the FORMULA of the cell is just that, the formula.
For cells with a simple value, like "3", then the formula and value are nearly 
the same.(the issue is that the value would be an integer, but the formula 
would be a string "3")
So, basically you could compare the value and formula for each used cell and 
overwrite if they are different.
I "convert" both the Value and Formula to strings to ensure they are compared 
properly, and use:
Sub BreakLinks()
    Dim Rng As Range
    For Each Rng In Sheets(1).UsedRange
    If (Rng.Formula & "X" <> Rng.Value & "X") Then Rng.Formula = Rng.Value
    Next Rng
End Sub
 
I created a sheet with 1000 rows and 100 columns. (so 100,000 cell contents)I 
then created a sheet that had 100,000 cells that added the contents of the 
adjacent sheet.
This macro converted the 100,000 cells to values in about 3 seconds.
Paul-- ---
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-- --- 

On Tuesday, May 23, 2017 2:56 PM, KAUSHIK SAVLA  
wrote:
 

 This is think will definitely help. 
Thanks. 
On May 24, 2017 00:23, "Paul Schreiner"  wrote:

That's very CPU intensive because it copies all cells to the clipboardand 
pastes them from clipboard.which can be a HUGE number of cells for each sheet.
If you simply want to break the external links, you can use something like:
alinks = ActiveWorkbook.LinkSources( xlExcelLinks)
    
    If Not IsEmpty(alinks) Then
    For inx = 1 To UBound(alinks)
    ActiveWorkbook.BreakLink _
    Name:=alinks(inx), _
    Type:=xlLinkTypeExcelLinks
    Next inx
    End If
This will break links to EXTERNAL workbooks (and convert to values) but it 
doesn't do anything to the links to worksheets within the current workbook.
does that help? Paul-- ---
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-- --- 

On Tuesday, May 23, 2017 2:03 PM, KAUSHIK SAVLA  
wrote:
 

 Hi Team,
I am trying to do below in an excel. You can assume there are 60 worksheets 
minimum in a workbook.
1. In opened excel file. Which has links from several files2. All cells of the 
workbook I am doing paste special values3. Then to come at the first cell in 
all worksheets (i.e. Cell A1)4. Then to come at first tab, first cell, Save the 
workbook here (so whenever excel opens the person will see first sheet, first 
cell)5. Close the workbook
I am having below vba code. It is taking forever to run (minimum 15-20 
minutes). Can anyone please help in boosting speed so could be run in fraction 
of seconds.

Sub Select_All_Sheets()Dim sht As WorksheetDim SelectMe() As StringDim s As 
IntegerFor Each sht In Worksheetss = s + 1ReDim Preserve SelectMe(1 To s) As 
StringSelectMe(s) = sht.NameSheets(SelectMe).SelectCells.Select    
Selection.Copy    Selection.PasteSpecial Paste:=xlPasteValues, 
Operation:=xlNone, SkipBlanks _        :=False, Transpose:=False    
Application.CutCopyMode = False    Application.Goto Range(Cells(ActiveWindow. 
SplitRow + 1, ActiveWindow.SplitColumn + 1).Address)    
ActiveWorkbook.SaveNextEnd Sub
Regards,Kaushik Savla-- 
Are you =