Questions related to Visual Basic for Applications (VBA)

learn more… | top users | synonyms

1
vote
0answers
20 views

How do i call a Stored Procedure and fetch it's resaults from the Model [migrated]

I have been following This lab but i did 2 things differently I am using VB not C# I used my local Database rather than Azure i completed the lab and it all works correctly. from here i planned to ...
1
vote
0answers
29 views

SSRS Code Behind and SharePoint

I have a couple of general questions about using VB code with SSRS reports in SharePoint. I have noticed that when I use an expression on my report, the expression only talks to the data that is in ...
0
votes
0answers
22 views

SharePoint 2010 - Custom Property can't be accessed in VBA for brand new files

I have a Document Library in SharePoint 2010 which will be used to receive Excel files via email. I have created a column/property called "Status". The default value for this is "New". I email an ...
0
votes
0answers
9 views

How to create a remotely callable service to query aggregated list data from sharepoint

We have the following scenario: multiple lists that are linked via lookup columns and a few "configuration" lists that contain special timespans (calendar events) relevant for classifying the events ...
1
vote
0answers
10 views

Workbook.CheckIn always produces an error the first time it's called? (x-posted on StackOverflow)

This question is cross-posted on SO here. I have some workbooks stored in a document library on Sharepoint 2007. I want to check out a workbook, modify it, and check it back in. Using the following ...
1
vote
1answer
67 views

Add New List Item With Attachment Via Excel VBA

I have users that have a schedule template in Excel (2010). I'm wondering how I can code via Excel VBA to create a new list item and attach the Excel worksheet they are using that contains the ...
1
vote
0answers
21 views

Access Version History and Approval from Word Macro

Our word document templates include a table that includes a version history and a second table with the list of approvers of the document. I would like to populate these tables from a VBA macro that ...
0
votes
0answers
16 views

Import SharepointList into Outlook template as BCC

I am trying to import a Sharepoint list into a BCC field of an Outlook oft email template. When user will click on the sharepoint linked oft email template, a new email message will open, BCC field ...
0
votes
0answers
30 views

VB script to automate importing sharepoint list data to excel

I need to automate pulling data from SharePoint list data to excel through writing a VB Script (not VBA). How can I import data directly from a SharePoint List into Excel using VB script? Currently, ...
0
votes
1answer
32 views

Export Access table to SP with display control Combo box

I have table in MS Access, that has following lookup properties: Display control: Combobox Row source type: Value list Row source: "Option 1";"Option 2";"Option 3" And I want export this table to ...
0
votes
0answers
52 views

Copy the docs/(word/excel/zipped folders) from Sharepoint document library to local folder

I have to pull (copy) the documents and folders (Zipped) stored in document library of sharepoint 2010 site into local folder using Excel VBA. I am new to VBA and have no idea how to start with this. ...
0
votes
0answers
5 views

How to retrieve AD Informations from Custom Application Page (Using VB)

I've just created a new application page (aspx with VB). I can't find any solution to gather their AD informations (specific attributes) without asking them their password twice (first time when they ...
-1
votes
1answer
333 views

Excel VBA code to upload document into SharePoint online 2013

I'm looking for a snippet in VBA to upload a document (PDF file) into SharePoint online
0
votes
1answer
34 views

Advise on how to share excel with other users

I am looking for advice on how to resolve the following issue. As part of a volunteering project I have automated an Excel spreadsheet using VBA. I have written a lot of code that includes user forms ...
0
votes
0answers
100 views

How to get the Last Modified Date and Time of an Excel file in a Sharepoint using VBA?

i am creating a macro file with command buttons that when you click it, it will display the properties esp the last modified date and time of an Excel file uploaded in a SharePoint site. How can i do ...
0
votes
0answers
102 views

Creating a file via VBA leads to Check-in Stalemate

We have Sharepoint 2010 Enterprise. I want to create a series of workbooks for salespeople, each one personalized, and with a different name . I want to have check-out enabled on the target doc ...
0
votes
0answers
129 views

Any access vba/macros code to read/write to SharePoint O365 list using REST API

Can anyone help me with a sample code to read/write to SharePoint O365 list using REST services. I have searched the net and i see examples for excel that im unable to use in access. Also the other ...
0
votes
0answers
82 views

Access SharePoint forms (Picture/Slide Library) from Powerpoint using VBA

We are developing a Sharepoint site, which includes a presentation library and a picture library. We have a PowerPoint Add-in coded with VBA already, and would like to extend this to interact with the ...
0
votes
0answers
123 views

excel macro to vlookup sharepoint list

I am trying to create a macro that looks up data (vlookup) from a SharePoint list. Once done, I want all the contents in my excel file to replace those in the SharePoint list. I can do all this from ...
0
votes
0answers
21 views

Find, replace and save in advance Rich text editor

I need to build/develop a processor with Visual Studio 2010 that finds some letter/character, changed it as desired ('>' into 'ê', '^' into 'â' etc) and save in Time New Roman font with a single ...
0
votes
0answers
103 views

How to insert new records on an sharepoint list from EXCEL VBA

I have an worksheet with the code below and I wanna populate a SharePoint list with it, but the code returns me the error: It isn't possible update the changes while there is validation errors in ...
0
votes
1answer
685 views

VBA - copy folder - checkout required

I'm using an access database to generate a folder full of files. I want to copy the folder to sharepoint. I'm trying to do this by programmatically mapping the sharepoint library to a network drive, ...
0
votes
0answers
192 views

Upload file to Sharepoint from outlook attachment using VBA

I am trying to automate the process to save a file (.PDF,.docx, etc) to the Sharepoint site our team is using but a file that is coming in the form as an Attachment in an Outlook form. It is a custom ...
0
votes
0answers
93 views

Request list of files and last updated file info?

I have to access to a SharePoint folder. I want to save and read updated Excel sheets periodically. I'm using WinXP with Excel 2003 (VBA) on the client side. I read a lot of stuff, but nothing ...
0
votes
1answer
112 views

Pulling Reports from SharePoint 2007 using VBA on a Recurring Event

Is there any code that will pull in all items listed on a recurring event that has a future start date? We have created a Calendar List for each of our clients with recurring tasks that the payroll ...
0
votes
1answer
3k views

Add and Update Single Item in Sharepoint List via VBA

I am trying to add and/or update single items in a SharePoint list via VBA and I found a similar question: But I have to say that I can only delete items with this code and I am not familiar with ...
2
votes
2answers
435 views

Is there a way to start a SharePoint workflow from VBA code?

I created a tool in Excel VBA that generates a custom report from the data I pulled from a SharePoint list via Excel VBA code. What I want to do is change/update the "Status" field for items within ...
1
vote
1answer
481 views

Import Sharepoint list via VBA in specific view

I am currenty trying to import a Sharepoint list in an Excel sheet via VBA and thanks to this: Import Sharepoint List into Excel Using VBA Only It is working pretty well, but if i leave the "VIEWNAME" ...
1
vote
0answers
130 views

Ms Access Linking To Sharepoint List

I have a SharePoint list with about 40,000 records * 4 columns I have linked the share point list in MS Access and attempted to run a query selecting all the records in the list into a local table to ...
2
votes
1answer
336 views

InfoPath - Copy values from Secondary Database Connection into Main Database connection

I was Hoping that someone could help me with the problem that I have been having, I am trying to copy one repeating field from my Secondary Database Connection into my Main Database Connection. The ...
0
votes
1answer
320 views

Uploading a document to a SP 2010 server via VB6

I'm currently trying to upload a file to a SharePoint 2010 server from within a VB6 application. Unfortunately I can't use any .NET or other additional libraries. I've read a couple of suggestions ...
1
vote
1answer
473 views

Compare Date to constant using ACE.OLEDB.12 in Excel VBA [closed]

After a lot of searching, trial and error, I finally managed to come up with an Excel VBA procedure that will return date from a SharePoint list. The query works fine if I do not qualify the Select ...
1
vote
2answers
6k views

query a sharepoint 2010 list from excel vba to retrieve a specific record

I have created a SharePoint 2010 list with 2 relevant columns: - Identification Key - Version Number I want to be able to query this SharePoint list from Excel VBA - passing the Identification Key to ...
4
votes
2answers
3k views

Run an Excel Macros from SharePoint

I was wondering if it's possible to initiate Excel macros (Excel file is located on a network drive) from SharePoint? Are there any add-in features within SharePoint that can communicate with macros?
1
vote
2answers
1k views

Delete Excel file in SharePoint 2010 library only by using VBA

I am having a excel workbook. When a person click on the marco the files are saves to two new folders need to delete a Excel file on SharePoint. I have tried the "Kill" function in Excel VBA, but is ...
0
votes
1answer
161 views

SharePoint 2007 VBA Find Replace

I'm trying to write a VBA macro for SharePoint Designer 2007 that will find/replace text but I cannot figure out the find/replace ojbect like I've been able to do with word. Anyone know how I could ...
0
votes
1answer
2k views

Automate exporting SharePoint list 2010 items to Excel 2010

I found this Import Sharepoint List into Excel Using VBA Only that people have been successfully using to automate the exporting SharePoint 2010 list items to Excel 2010. Currently I m also using web ...
3
votes
3answers
24k views

Import Sharepoint List into Excel Using VBA Only

In Excel 2007, I have a VBA script that consolidates various data sources into a single Excel file for monthly archiving and reporting purposes. How can I import data directly from a Sharepoint ...
1
vote
2answers
2k views

Reading meta data stored in Word templates on SharePoint

I have a doc library on SharePoint for my work templates (DOTX). The doc library has a column called "Template ID". Each template has an ID stored in that column. I want to use VBA to loop through ...
1
vote
3answers
2k views

Can You Enhance the “Export to Spreadsheet” Action for SharePoint Lists?

Do you know of any resources/solutions to enhance the List’s “Export to Spreadsheet” function so that, once the data is opened in Excel, something would trigger VBA Macro(s) to start formatting the ...
4
votes
3answers
19k views

Update List from Excel using VBA

I'm in the enviable position of having to support a client who wants to maintain and manipulate a complicated business spreadsheet in Excel, and then push a selection of that data to a list in ...