Seeking advice from advance excel gurus on this forum

Status
Not open for further replies.

Corried

Board Regular
Joined
Dec 19, 2019
Messages
217
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
Hello excel world.


I am seeking advice from advance excel gurus on this forum.


Here's the concern.


I found this code with its photo below searching online:


string strCountry = US; // Set country ( sheet name )
plotxy iy:=[Book1]strCountry$!(1,2) plot:=200 ogl:=[<new template:=LINE12>]; // Plot into graph template LINE12 that is pre-created.
plotxy iy:=[Book2]strCountry$!(1,2) plot:=200 ogl:=1;
layer -g; //Group plots

PlotTwoSheets.png




My problem here is this:


#1 How can I modify this code to automatically detect, the same worksheet names on each workbook. Example: Workbook (A) worksheet (United States) and workbook (B) worksheet (United States)


Now
Workbook (A) have 181 worksheets. (Each worksheet represent a country) And
Workbook (B) have 185 worksheets. (Each worksheet represent a country) Next.


#2 How can I modify the code to create a line and column chart automatically? Placing dates on the X axis and values from both workbooks using their prospective worksheets on both sides of the Y axis, beginning from the zero value.


How can this be done automatically, filling each worksheet with a chart, while extracting data from each workbook?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I am sorry.

VBA Code:
string strCountry = US; // Set country ( sheet name )
plotxy iy:=[Book1]strCountry$!(1,2) plot:=200 ogl:=[<new template:=LINE12>]; // Plot into graph template LINE12 that is pre-created.
plotxy iy:=[Book2]strCountry$!(1,2) plot:=200 ogl:=1;
layer -g; //Group plots

I found it on "originlab".

Hope I answer the question...

How do you want me to move forward?

Thanks in advance
 
Upvote 0
Cross posted Seeking advice from advance excel gurus on this forum

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Ok. Thanks Fluff for the feed back. Would make the correction going forward.
What do you recommend me to do?
 
Upvote 0
Just ensure you let us know of all/any crossposts.
 
Upvote 0
Just ensure you let us know of all/any crossposts.
No problem. Thanks.

I am not sure if you are open and willing to help me. I just don't know.

Is there any advice are you willing to share?
 
Upvote 0
I can't give any advice because, as far as I can see, it has nothing to do with Excel
 
Upvote 0
I can't give any advice because, as far as I can see, it has nothing to do with Excel

Ok. I am sorry. It sounds like I misunderstand what I am asking.

I beg for your forgiveness. Please. If what you say is true. Are you open in pointing me to the right direction. I promise you wouldn't here from me on "this" topic no more, unless someone else respond.

Thanks in advance.

New Member
 
Upvote 0
I'm afraid I don't understand what you are saying.
You have asked a question about an app from OriginLab, which (AFAIK) has nothing to do with Excel.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,920
Messages
6,175,378
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top