How can I bind a ppt textbox value to an excel cell? - powerpoint

Just like we do it in excel, reference value of another cell in current cell.
How can I do this in powerpoint shape/textbox by using office-js or legacy office interop.
I can create powerpoint slide from a template if type "=A1" in textbox and replace it by data from excel and generate a new slide, but I do not know how to link it to worksheet and update it when the origin cell changes.

Related

How to replace text in Powerpoint with activeX textbox value?

I'm sorry if I can't explain this very well. Language barrier and all that. Might explain why I wasn't able to google a solution... Anyway.
I'm trying to make an interactive Powerpoint where in the first slide the user writes their name in an ActiveX textbox and the name then repeats in several other slides. Because the name would be in the middle of different texts my solution was to add a placeholder word that would then be replaced with the textbox value. I was able to Frankenstein a code that replaces one name with another that works well enough but I can't get the textbox to work with it. Best I can do is replace the placeholder name with some variation of TextBox1.Value and while I know what causes that issue I can't work out a solution.
Not sure if it makes a difference but the plan is to add some sort of "OK" button next to the active textbox that runs the macro.
Sub Findandreplace()
Dim sld As Slide
Set sld = ActivePresentation.Slides(1)
Dim shp As Shape
For Each sld In ActivePresentation.Slides
For Each shp In sld.Shapes
If shp.HasTextFrame Then
If shp.TextFrame.HasText Then
shp.TextFrame.TextRange.Text = Replace(shp.TextFrame.TextRange.Text, "word1", "word2")
End If
End If
Next shp
Next sld
End Sub
ActiveX objects have a different set of properties/methods than regular PPT shapes. Assuming you have a reference to the AX textbox in a variable oSh,
osh.OLEFormat.Object.Text
will give you the text in the ActiveX textbox

Updating PowerPoint slide element in presentation mode using Office API

I would like to update text elements in a PPT slide-deck when the user starts the slideshow.
Q1: Is there an event triggered when the slideshow starts?
Q2: How to I access a specific element (is there an id of sort)?
Q3: How to I change the text a specific element?
Thank you

How can I get a reference to the currently selected text in keynote into a variable in applescript

I would really like to drop MS Office and switch to the Apple apps but I have some applescripts for powerpoint that I need to replace. I need to do things like change the font or the opacity of the currently SELECTED text. I can't figure out how to get access to the selected text so that I can change its attributes.
Help would be appreciated.
David
For PowerPoint: the text range property, of the selection object, has a property called font that includes a transparency property described as a real number.
For Keynote: the slide object inherits from iWork container that contains text items that have an opacity property described as a percent.
I got this from the respective application dictionaries.
Upon further review based on comments, there does not seem to be an indicator in the Keynote app that delivers the currently selected object of a container (shape, text object, etc.) automagically.
What I'm thinking is that you could send the menu events to perform a copy of whatever is selected and then iterate through the properties and contained objects of the slide to find a match. This is ugly but I am at a loss otherwise.

how to create a button in 2010 and 2007 excel that in one click the selected data will be transfered in a specific sheet?

I need your help. I am creating a database and I need to create a button that will help me transfer selected cells/data to a separate sheet. I have "pended" cases that I need to copy and paste on a sheet named "Pending Cases" and I'd like to do it by inserting a button on a sheet. I know this is possible. Please help. Thank you!
To add a button you can display the Develop Tab. In Excel 2010 right-click in the Ribbon, choose Customize the Ribbon, and click Developer on the right-hand side. In 2007, click the Office Button, Options, and this option is towards the top of the first Tab.
In the Develop Tab, Controls Group, click Insert and choose Form Controls, Button. When you drag to draw this on the worksheet it will then ask you to assign a macro to this button. You can Record a macro from here, or type a name for your procedure and press New.
The following code copies data from one sheet range to another.
Application.ScreenUpdating = False
Worksheets("Sheet2").Range("B1:B4").Value = _
Worksheets("Sheet1").Range("A1:A4").Value
Application.ScreenUpdating = True

Creating a Datetimepicker in screen painter in SAP Business 1

I'm new to using screen painter and I am trying to make a payroll add -on for SAP B1. The payroll application I have right now, I made in C# .NET. The forms are winforms and I want to make them again with screen painter using SAP B1 8.81 PL 4.
On the toolbox for screen painter, I do not see any datetimepicker that I can drag onto the form unlike in Visual Studio.
So how do I get to have a datetimepicker using screenpainter?
add a "Text Field"
then go to its attributes (by double clicking) and change the data format to "Date"
to make a text field as Date picker type we need to bind that field with a date field in a sap b1 table or using userdata sources through coding.
after adding this we need to enable option for date in view-> pickers display in menu.

Resources